From: Katsunori SUZUI Date: Fri, 13 Jun 2014 09:29:45 +0000 (+0900) Subject: Fix tweepy.API.update_with_madia X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=acca9d669aeca251a285225603dae1454488ab57;p=tweepy.git Fix tweepy.API.update_with_madia `filename` have to be percent-encoded whichever it is an instance of `unicode` or an instance of `str`. --- diff --git a/tweepy/api.py b/tweepy/api.py index 90946a3..997a8d0 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1232,7 +1232,7 @@ class API(object): if isinstance(filename, unicode): filename = filename.encode("utf-8") - filename = urllib.quote(filename) + filename = filename.encode("utf-8") BOUNDARY = 'Tw3ePy' body = []