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

Notebook Python 3 fixes #417

Merged
merged 2 commits into from Jul 29, 2016

Conversation

patricksnape
Copy link
Contributor

@patricksnape patricksnape commented Jul 28, 2016

  • Use next() rather than .next() which doesn't exist on Python 3.
  • Use base64 module for png backend.

Use next() rather than .next() which doesn't exist on Python 3
@codecov-io
Copy link

codecov-io commented Jul 28, 2016

Current coverage is 45.61% (diff: 25.00%)

Merging #417 into master will increase coverage by <.01%

@@             master       #417   diff @@
==========================================
  Files           256        256          
  Lines         23292      23293     +1   
  Methods           0          0          
  Messages          0          0          
  Branches       3074       3074          
==========================================
+ Hits          10623      10624     +1   
  Misses        11948      11948          
  Partials        721        721          

Powered by Codecov. Last update 39397fb...693c606

Base64 decoding is more complicated on Python 3 due to it's
sensitvity with bytes. Thus, use the base64 module and ensure
that the output is re-encoded as ascii otherwise Python 3
outputs a 'b' prefix
@patricksnape patricksnape changed the title Simple py3 fix -> use the next() function Notebook Python 3 fixes Jul 28, 2016
@prabhuramachandran
Copy link
Member

Thanks for this! Merging.

@prabhuramachandran prabhuramachandran merged commit 77081e2 into enthought:master Jul 29, 2016
@patricksnape patricksnape deleted the notebook_py3_fix branch July 29, 2016 17:47
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.

None yet

3 participants