Fix _run method
authorAaron Hill <aa1ronham@gmail.com>
Sat, 19 Apr 2014 12:46:11 +0000 (08:46 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sat, 19 Apr 2014 12:46:45 +0000 (08:46 -0400)
tweepy/binder.py

index 7a03ad945e081392c073ddbc048ec873706e9f28..37c2effd162d4ecd47d8f8b249dac37a9014e770 100644 (file)
@@ -221,15 +221,14 @@ def bind_api(**config):
 
             return result
 
-    def _call(api, create=False, *args, **kargs):
+    def _call(api, *args, **kargs):
 
         method = APIMethod(api, args, kargs)
-        if create:
+        if kargs.get('create'):
             return method
         else:
             return method.execute()
 
-
     # Set pagination mode
     if 'cursor' in APIMethod.allowed_param:
         _call.pagination_mode = 'cursor'