Don't pass self to API methods
authorAaron Hill <aa1ronham@gmail.com>
Wed, 18 Jun 2014 17:12:03 +0000 (13:12 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Wed, 18 Jun 2014 17:12:03 +0000 (13:12 -0400)
tweepy/api.py

index 73038eceefb8da8af2f0f6928d395e34aa2ce755..49b5219b2f9133aee91ba912453c5eee358bd399 100644 (file)
@@ -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