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

python 2/3 compatibility #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

iborko
Copy link

@iborko iborko commented Jan 22, 2018

I made changes to make this code both python2 and python3 compatible. I replaced the iteritems with items - it doesn't do the same thing, but for very small lists (as the ones in this code) performance impact is insignificant. And of course, results are equal.
Also added list in front of zip to make in work in python3 (where zip returns a iterable ZipObject).

@goberoi
Copy link
Owner

goberoi commented Feb 2, 2018

Thank you for the several pull requests you have submitted!

I will take a look at them this weekend and write back or merge away.

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