From fbea50041cf46e9bb82ca6e75363d55fa2ededa5 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 2 Feb 2021 14:56:31 -0600 Subject: [PATCH] Pack and unpack arguments for build_parameters --- tweepy/binder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.25.1