Skip to content

Commit

Permalink
Fix ImportError: No module named 'StringIO' on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Jan 3, 2016
1 parent e951bd6 commit 4c3bf8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/misc/svg_filter_pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@


# save
from StringIO import StringIO
f = StringIO()
from io import BytesIO
f = BytesIO()
plt.savefig(f, format="svg")

import xml.etree.cElementTree as ET
Expand Down

0 comments on commit 4c3bf8e

Please sign in to comment.