From: Harmon Date: Tue, 2 Feb 2021 20:56:31 +0000 (-0600) Subject: Pack and unpack arguments for build_parameters X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fbea50041cf46e9bb82ca6e75363d55fa2ededa5;p=tweepy.git Pack and unpack arguments for build_parameters --- diff --git a/tweepy/binder.py b/tweepy/binder.py index f742f72..4581633 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -15,7 +15,7 @@ from tweepy.models import Model log = logging.getLogger(__name__) -def build_parameters(allowed_param, args, kwargs): +def build_parameters(allowed_param, *args, **kwargs): params = {} for idx, arg in enumerate(args): @@ -189,7 +189,7 @@ def bind_api(*args, **kwargs): use_cache = kwargs.pop('use_cache', True) allowed_param = kwargs.pop('allowed_param', []) - params = build_parameters(allowed_param, args, kwargs) + params = build_parameters(allowed_param, *args, **kwargs) return execute( api, http_method, path, params=params, headers=headers, json_payload=json_payload, parser=parser,