From ec11e82f321f028ae6d0ae57203082bc4208e1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 9 Mar 2016 12:40:19 +0100 Subject: [PATCH] PEP8 formatting --- pillarsdk/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillarsdk/utils.py b/pillarsdk/utils.py index 900ef88..5a6bed6 100644 --- a/pillarsdk/utils.py +++ b/pillarsdk/utils.py @@ -57,7 +57,7 @@ def join_url_params(url, params): jsonified_params = { key: convert_to_string(param) for key, param in params.items() - } + } return url + "?" + urlencode(jsonified_params) @@ -104,6 +104,6 @@ def remove_none_attributes(attributes): return type(attributes)(remove_none_attributes(x) for x in attributes if x is not None) elif isinstance(attributes, dict): return type(attributes)((remove_none_attributes(k), remove_none_attributes(v)) - for k, v in attributes.items() if k is not None and v is not None) + for k, v in attributes.items() if k is not None and v is not None) else: return attributes