Skip to content

Commit

Permalink
Merge pull request #539 from GlenWalker/fix_get_next
Browse files Browse the repository at this point in the history
Handling of __next__ and next by future.utils.get_next was reversed
  • Loading branch information
jmadler authored Feb 5, 2020
2 parents fcd78df + 52b0ff9 commit ef51288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/future/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ def __next__(self):
return cls

if PY3:
get_next = lambda x: x.next
else:
get_next = lambda x: x.__next__
else:
get_next = lambda x: x.next


def encode_filename(filename):
Expand Down

0 comments on commit ef51288

Please sign in to comment.