From 69f6c1d1302f0d5118ce2d288f76e7d8ffdac8c0 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 11:11:13 -0600 Subject: [PATCH] Rename file_ API.update_profile_image parameter to file --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' -- 2.25.1