Commit caf15a92 authored by Katsunori SUZUI's avatar Katsunori SUZUI
Browse files

Fix tweepy.API.update_with_madia

`filename` have to be percent-encoded whichever it is an instance of
`unicode` or an instance of `str`.
parent d7ac5d85
......@@ -790,7 +790,8 @@ class API(object):
raise TweepError('Invalid file type for image: %s' % file_type)
if isinstance(filename, unicode):
filename = urllib.quote(filename.encode("utf-8"))
filename = filename.encode("utf-8")
filename = urllib.quote(filename)
BOUNDARY = 'Tw3ePy'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment