From: Harmon Date: Fri, 19 Feb 2021 17:11:13 +0000 (-0600) Subject: Rename file_ API.update_profile_image parameter to file X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=69f6c1d1302f0d5118ce2d288f76e7d8ffdac8c0;p=tweepy.git Rename file_ API.update_profile_image parameter to file --- diff --git a/tweepy/api.py b/tweepy/api.py index 20b3c7d..ec87b07 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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'