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

Fixes for Python 3.x #20

Merged
merged 2 commits into from
Jan 24, 2016
Merged

Fixes for Python 3.x #20

merged 2 commits into from
Jan 24, 2016

Conversation

desbma
Copy link
Contributor

@desbma desbma commented Jan 17, 2016

Fixes for Python 3:

  • dict.iteritems() does not exist in Python 3 (it has been replaced by dict.items())
  • sys.stdout is open in text mode, so you can't write a binary file to it without reopening it in binary mode

The following code works with both Python 2 & 3 (tested with 2.7 & 3.4).

@pndurette
Copy link
Owner

Oh thank you @desbma! I guess the cli escaped the Python-3-ness. That looks much better. I'll merge and release this shortly.

pndurette added a commit that referenced this pull request Jan 24, 2016
@pndurette pndurette merged commit 77f197a into pndurette:master Jan 24, 2016
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