Remove improper bind_api argument in API.update_profile_image
authorHarmon <Harmon758@gmail.com>
Wed, 3 Feb 2021 07:19:29 +0000 (01:19 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 3 Feb 2021 07:19:29 +0000 (01:19 -0600)
tweepy/api.py

index c2fb43a73c8584bd6e7223b0a71af4eb4db96d96..616399d0b8f35e48d132ceb7be981c64a7b556a0 100644 (file)
@@ -648,7 +648,7 @@ class API:
         """
         headers, post_data = API._pack_image(filename, 700, f=file_)
         return bind_api(
-            self, api=self,
+            api=self,
             path='/account/update_profile_image.json',
             method='POST',
             allowed_param=['include_entities', 'skip_status'],