Skip to content

Commit ef51288

Browse files
authored
Merge pull request #539 from GlenWalker/fix_get_next
Handling of __next__ and next by future.utils.get_next was reversed
2 parents fcd78df + 52b0ff9 commit ef51288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/future/utils/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,9 @@ def __next__(self):
527527
return cls
528528

529529
if PY3:
530-
get_next = lambda x: x.next
531-
else:
532530
get_next = lambda x: x.__next__
531+
else:
532+
get_next = lambda x: x.next
533533

534534

535535
def encode_filename(filename):

0 commit comments

Comments
 (0)