We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7ad54e commit 5595005Copy full SHA for 5595005
lib/matplotlib/cbook.py
@@ -37,7 +37,7 @@ def addinfourl(data, headers, url, code=None):
37
def urllib_quote():
38
return urllib2.quote
39
def addinfourl(data, headers, url, code=None):
40
- return urllib2.addinfourl(io.StringIO(data),
+ return urllib2.addinfourl(io.BytesIO(data),
41
headers, url, code)
42
urllib_HTTPSHandler = urllib2.HTTPSHandler
43
urllib_build_opener = urllib2.build_opener
0 commit comments