Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Use io.BytesIO instead of io.StringIO in examples #6205
Conversation
mdboom
added this to the
1.5.2 (Critical bug fix release)
milestone
Mar 22, 2016
mdboom
added the
needs_review
label
Mar 22, 2016
WeatherGod
and 1 other
commented on an outdated diff
Mar 22, 2016
examples/misc/svg_filter_line.py
| @@ -52,7 +52,7 @@ | ||
| ax.set_ylim(0., 1.) | ||
| # save the figure as a string in the svg format. | ||
| -from io import StringIO | ||
| +from six import StringIO |
tacaswell
Owner
|
|
I still think it'd be better to switch to |
|
|
mdboom
changed the title from
Use six.StringIO instead of io.StringIO in examples to Use io.BytesIO instead of io.StringIO in examples
Mar 23, 2016
|
I've updated this (and the title of this issue) to use |
efiring
commented on an outdated diff
Mar 23, 2016
QuLogic
commented on an outdated diff
Mar 23, 2016
doc/faq/howto_faq.rst
| @@ -664,8 +664,9 @@ Here is an example using `Pillow <http://python-imaging.github.io/>`_. | ||
| First, the figure is saved to a StringIO object which is then fed to | ||
| Pillow for further processing:: | ||
| - import StringIO, Image | ||
| - imgdata = StringIO.StringIO() | ||
| + from io import BytesIO | ||
| + import Image |
|
|
QuLogic
commented on an outdated diff
Mar 23, 2016
tacaswell
merged commit f66d255
into matplotlib:master
Mar 26, 2016
tacaswell
removed the
needs_review
label
Mar 26, 2016
tacaswell
added a commit
that referenced
this pull request
Mar 27, 2016
|
|
tacaswell |
40cfef1
|
|
backported to 1.5.1-doc as 40cfef1 |
bearstrong
added a commit
to bearstrong/matplotlib
that referenced
this pull request
Apr 1, 2016
|
|
tacaswell + bearstrong |
5a0267c
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mdboom commentedMar 22, 2016
Fixes #6201.