From 050835e660e43580f0fade8c6d8e0d0c19856d01 Mon Sep 17 00:00:00 2001 From: Mike Helmick Date: Tue, 21 May 2013 15:20:17 -0400 Subject: [PATCH] construct_api_url params as kwarg Sometimes params isn't doesn't have to be passed [ci skip] --- twython/twython.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twython/twython.py b/twython/twython.py index 54c2979..286afd8 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -348,9 +348,9 @@ class Twython(object): return Twython.construct_api_url(base_url, params) @staticmethod - def construct_api_url(base_url, params): + def construct_api_url(base_url, params=None): querystring = [] - params, _ = _transparent_params(params) + params, _ = _transparent_params(params or {}) params = requests.utils.to_key_val_list(params) for (k, v) in params: querystring.append(