From: Harmon Date: Wed, 3 Feb 2021 08:00:03 +0000 (-0600) Subject: Replace execute function with bind_api X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=167c4829272ac2830eee3e69158f45db030d56eb;p=tweepy.git Replace execute function with bind_api --- diff --git a/tweepy/binder.py b/tweepy/binder.py index f8ff517..71bebbb 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -15,10 +15,10 @@ from tweepy.models import Model log = logging.getLogger(__name__) -def execute(api, method, path, *args, allowed_param=[], params=None, - headers=None, json_payload=None, parser=None, payload_list=False, - payload_type=None, post_data=None, require_auth=False, - return_cursors=False, upload_api=False, use_cache=True, **kwargs): +def bind_api(api, method, path, *args, allowed_param=[], params=None, + headers=None, json_payload=None, parser=None, payload_list=False, + payload_type=None, post_data=None, require_auth=False, + return_cursors=False, upload_api=False, use_cache=True, **kwargs): # If authentication is required and no credentials # are provided, throw an error. if require_auth and not api.auth: @@ -167,10 +167,6 @@ def execute(api, method, path, *args, allowed_param=[], params=None, session.close() -def bind_api(api, method, path, *args, **kwargs): - return execute(api, method, path, *args, **kwargs) - - def pagination(mode): def decorator(method): method.pagination_mode = mode