Skip to content

Commit 95f4c9a

Browse files
committed
Merge pull request #1 from mdboom/cgohlke-patch-2
Fix get_sample_data under Python 2
2 parents f7ad54e + 5595005 commit 95f4c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def addinfourl(data, headers, url, code=None):
3737
def urllib_quote():
3838
return urllib2.quote
3939
def addinfourl(data, headers, url, code=None):
40-
return urllib2.addinfourl(io.StringIO(data),
40+
return urllib2.addinfourl(io.BytesIO(data),
4141
headers, url, code)
4242
urllib_HTTPSHandler = urllib2.HTTPSHandler
4343
urllib_build_opener = urllib2.build_opener

0 commit comments

Comments
 (0)