From 04655752cbb3d369467e3c27b60414ec4ffb01ca Mon Sep 17 00:00:00 2001 From: Martyn Smith Date: Thu, 18 Jun 2015 09:24:25 +1200 Subject: [PATCH] Correctly handle default for Request params --- pusher/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pusher/http.py b/pusher/http.py index 5b12130..6c207a4 100644 --- a/pusher/http.py +++ b/pusher/http.py @@ -63,7 +63,9 @@ class Request(object): :param path: The target path on the destination host :param params: Query params or body depending on the method """ - def __init__(self, config, method, path, params={}): + def __init__(self, config, method, path, params=None): + if params is None: + params = {} self.config = config self.method = method self.path = path