Fix tweepy.API.update_with_media
authorKatsunori SUZUI <kt@7kry.net>
Fri, 13 Jun 2014 09:00:02 +0000 (18:00 +0900)
committerAaron Hill <aa1ronham@gmail.com>
Tue, 1 Jul 2014 11:54:58 +0000 (07:54 -0400)
commit4299f9a864bebad2934c382746633bba3dca847f
treee2a119b3f5b171acb693c61755d401b99f1b24a7
parente9310b3672f4a8df04567f74a7bd867b9022578d
Fix tweepy.API.update_with_media

If filename is an instance of `unicode',
L.76 `` 'Content-Disposition: form-data; name="%s"; filename="%s"' % (form_field, filename) ''
must be unicode string.

Because of it, L. 803 `` body = '\r\n'.join(body) '' fails.

Therefore, I made `filename' designed to be percent-encoded str object
before formatting.
tweepy/api.py