From 437e19ac26d4ae0b444fcedc9e229c711657875c Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Wed, 18 Jun 2014 13:12:03 -0400 Subject: [PATCH] Don't pass self to API methods --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1