Skip to content

Add shlex.shlex.next in Python 2.#3389

Merged
srittau merged 1 commit intomasterfrom
shlex
Oct 18, 2019
Merged

Add shlex.shlex.next in Python 2.#3389
srittau merged 1 commit intomasterfrom
shlex

Conversation

@rchen152
Copy link
Collaborator

shlex.shlex should match the Iterator protocol, for which it needs both
__iter__ and __next__ (next in Python 2) defined. In Python 3,
__next__ is already defined, so I copied the definition.

shlex.shlex should match the Iterator protocol, for which it needs both
`__iter__` and `__next__` (`next` in Python 2) defined. In Python 3,
`__next__` is already defined, so I copied the definition.
@srittau srittau merged commit ffd73b3 into master Oct 18, 2019
@srittau srittau deleted the shlex branch October 18, 2019 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants