Skip to content

Commit 0585bea

Browse files
committed
Fixing iterators
Python3 requires the `next` function to be called `__next__`, which is implicitly called when generating the next value using the iterator
1 parent 3f6f559 commit 0585bea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ps2mc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def write_raw_ent(self, index, ent, set_modified):
512512
self.f.write(pack_dirent(ent),
513513
_set_modified = set_modified)
514514

515-
def next(self):
515+
def __next__(self):
516516
# print("@@@ next", self.tell(), self.f.name)
517517
dirent = self.f.read(PS2MC_DIRENT_LENGTH)
518518
if dirent == b"":

0 commit comments

Comments
 (0)