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

Remove use of six.iteritems #28875

Merged
merged 1 commit into from May 6, 2021
Merged

Remove use of six.iteritems #28875

merged 1 commit into from May 6, 2021

Conversation

foolip
Copy link
Member

@foolip foolip commented May 6, 2021

The implementation of this in Python 3 is:

def iteritems(d, **kw):
return iter(d.items(**kw))

Replacing itemitems(value) with iter(value.items()) should thus be the
100% safe option, but when used in for loops, just value.items() will
suffice.

Part of #28776.

The implementation of this in Python 3 is:
https://github.com/web-platform-tests/wpt/blob/aa9b753e75bb0c7de5a05277c91cef3a7a7348e4/tools/third_party/six/six.py#L588-L589

Replacing itemitems(value) with iter(value.items()) should thus be the
100% safe option, but when used in for loops, just value.items() will
suffice.

Part of #28776.
@foolip foolip merged commit 6979b5d into master May 6, 2021
@foolip foolip deleted the foolip/six_iteritems branch May 6, 2021 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants