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

.itervalues() => .values() python3 compatibility #32

Merged
merged 2 commits into from
Jul 30, 2020

Conversation

blake-regalia
Copy link
Contributor

not sure how to target compatibility for both python2 and python3 since the drawbacks of using .values() in python2 are obvious. otherwise, this is a patch for python3.

@blake-regalia
Copy link
Contributor Author

#31

@alexisdimi
Copy link

alexisdimi commented Jul 4, 2019

@blake, the drawbacks are not so obvious in this case; the number of labels on a single resource is unlikely to be large enough to cause a problem.

@paulovn
Copy link
Owner

paulovn commented Jul 7, 2019

Thanks to both of you for discovering and releasing a fix, I've added a bugfix in the 1.3.0 branch, now in testing phase.

I finally used popitem(), which seems to work in Python 2 & 3 and it is straightforward,

@paulovn paulovn merged commit fa62359 into paulovn:master Jul 30, 2020
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.

3 participants