From: Aaron Hill Date: Wed, 18 Jun 2014 17:12:03 +0000 (-0400) Subject: Don't pass self to API methods X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=437e19ac26d4ae0b444fcedc9e229c711657875c;p=tweepy.git Don't pass self to API methods --- diff --git a/tweepy/api.py b/tweepy/api.py index 73038ec..49b5219 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -195,7 +195,7 @@ class API(object): 'place_id', 'display_coordinates' ], require_auth=True - )(self, *args, **kwargs) + )(*args, **kwargs) @property def destroy_status(self): @@ -553,7 +553,7 @@ class API(object): payload_type='user', require_auth=True, allowed_param=['include_entities', 'skip_status'], - )(self, **kargs) + )(**kargs) except TweepError as e: if e.response and e.response.status == 401: return False