From f85589fc63a6be83c7ad943813d918163e41324b Mon Sep 17 00:00:00 2001 From: Amaury Medeiros Date: Fri, 13 Jun 2014 18:06:21 -0300 Subject: [PATCH] Simplify expression. --- pyechonest/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyechonest/util.py b/pyechonest/util.py index 88b9e0f..396ad3d 100644 --- a/pyechonest/util.py +++ b/pyechonest/util.py @@ -204,7 +204,7 @@ def callm(method, param_dict, POST=False, socket_timeout=None, data=None): socket.setdefaulttimeout(socket_timeout) if(POST): - if (not method == 'track/upload') or ((method == 'track/upload') and 'url' in param_dict): + if (not method == 'track/upload') or ('url' in param_dict): """ this is a normal POST call """