Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP-3333: Issue #2127, LatinIter.__next__ should call self._next befo… #2128

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pep-3333.txt
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,11 @@ a block boundary.)
return self

def __next__(self):
data = self._next()
if self.transform_ok:
return piglatin(self._next()) # call must be byte-safe on Py3
return piglatin(data) # call must be byte-safe on Py3
else:
return self._next()
return data

class Latinator:

Expand Down