Skip to content

Notebook Python 3 fixes#417

Merged
prabhuramachandran merged 2 commits into
enthought:masterfrom
patricksnape:notebook_py3_fix
Jul 29, 2016
Merged

Notebook Python 3 fixes#417
prabhuramachandran merged 2 commits into
enthought:masterfrom
patricksnape:notebook_py3_fix

Conversation

@patricksnape
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

3 participants