projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69f6c1d
)
Change file API.update_profile_image parameter to be keyword-only
author
Harmon
<Harmon758@gmail.com>
Fri, 19 Feb 2021 17:12:09 +0000
(11:12 -0600)
committer
Harmon
<Harmon758@gmail.com>
Fri, 19 Feb 2021 17:12:09 +0000
(11:12 -0600)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index ec87b07ceefe54d6c1a0eda94f07f9c82da98408..d74e5a099e6332a4295dc9121b7f5db8785bfc87 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-705,7
+705,7
@@
class API:
)
@payload('user')
- def update_profile_image(self, filename, file=None, **kwargs):
+ def update_profile_image(self, filename,
*,
file=None, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image
"""
headers, post_data = API._pack_image(filename, 700, f=file)