From 7c4cfd2248e1edf4228536d2745f6e46d1cdf304 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 14 Jan 2021 04:59:51 -0600 Subject: [PATCH] Rename API.update_profile_image file_ 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 50b01f0..cd5f31e 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -798,11 +798,11 @@ class API: use_cache=False ) - def update_profile_image(self, filename, file_=None): + def update_profile_image(self, filename, file=None): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image :allowed_param: 'include_entities', 'skip_status' """ - headers, post_data = API._pack_image(filename, 700, f=file_) + headers, post_data = API._pack_image(filename, 700, f=file) return bind_api( api=self, path='/account/update_profile_image.json', -- 2.25.1