Merge b552913e53 into 8ea61af4fc
This commit is contained in:
commit
d1c1ea2d00
1 changed files with 4 additions and 4 deletions
|
|
@ -435,7 +435,7 @@ class Twython(object):
|
|||
url = 'https://api.twitter.com/%d/account/update_profile_background_image.json' % version
|
||||
return self._media_update(url,
|
||||
{'image': (file_, open(file_, 'rb'))},
|
||||
params={'tile': tile})
|
||||
**{'tile': tile})
|
||||
|
||||
def bulkUserLookup(self, **kwargs):
|
||||
"""Stub for a method that has been deprecated, kept for now to raise errors
|
||||
|
|
@ -474,7 +474,7 @@ class Twython(object):
|
|||
{'media': (file_, open(file_, 'rb'))},
|
||||
**params)
|
||||
|
||||
def _media_update(self, url, file_, params=None):
|
||||
def _media_update(self, url, file_, **params):
|
||||
return self.post(url, params=params, files=file_)
|
||||
|
||||
def getProfileImageUrl(self, username, size='normal', version=1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue