Added two missed api=self.
authorJordi Riera <kender.jr@gmail.com>
Tue, 3 Jun 2014 14:51:15 +0000 (16:51 +0200)
committerJordi Riera <kender.jr@gmail.com>
Tue, 3 Jun 2014 14:51:15 +0000 (16:51 +0200)
tweepy/api.py

index f26a5c17cb10901fe491d54cb6ca7e1f3e343e9f..eda5e450d41bda9c9203726acf01e1714df2a693 100644 (file)
@@ -617,6 +617,7 @@ class API(object):
         f = kargs.pop('file', None)
         headers, post_data = API._pack_image(filename, 800, f=f)
         bind_api(
+            api=self,
             path='/account/update_profile_background_image.json',
             method='POST',
             payload_type='user',
@@ -629,6 +630,7 @@ class API(object):
         f = kargs.pop('file', None)
         headers, post_data = API._pack_image(filename, 700, form_field="banner", f=f)
         bind_api(
+            api=self,
             path='/account/update_profile_banner.json',
             method='POST',
             allowed_param=['width', 'height', 'offset_left', 'offset_right'],