From 0a1fc44a420021b0c9babffe10185f855426df5f Mon Sep 17 00:00:00 2001 From: Prakash Rai <201551009@iiitvadodara.ac.in> Date: Sun, 2 Jul 2017 06:24:46 +0530 Subject: [PATCH] Added missing return keyword Return keywords were missing in `update_profile_background_image()` and `update_profile_banner()`. --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index c652e90..712c5cc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -682,7 +682,7 @@ class API(object): """ f = kargs.pop('file', None) headers, post_data = API._pack_image(filename, 800, f=f) - bind_api( + return bind_api( api=self, path='/account/update_profile_background_image.json', method='POST', @@ -697,7 +697,7 @@ class API(object): """ f = kargs.pop('file', None) headers, post_data = API._pack_image(filename, 700, form_field="banner", f=f) - bind_api( + return bind_api( api=self, path='/account/update_profile_banner.json', method='POST', -- 2.25.1