Rename file_ API.update_profile_image parameter to file
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 17:11:13 +0000 (11:11 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 17:11:13 +0000 (11:11 -0600)
tweepy/api.py

index 20b3c7d08f04eac4a13c4b297bf215dd60509064..ec87b07ceefe54d6c1a0eda94f07f9c82da98408 100644 (file)
@@ -705,10 +705,10 @@ 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_)
+        headers, post_data = API._pack_image(filename, 700, f=file)
         return self.request(
             'POST', 'account/update_profile_image', endpoint_parameters=(
                 'include_entities', 'skip_status'