From c59ead36cee6f792f3fe6b5d2bcc4729eba3dffb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 15 Sep 2015 17:23:59 +0200 Subject: [PATCH] Patch for Python 2.6 (SyntaxError) --- lib/utils/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/api.py b/lib/utils/api.py index 21068bb96..c73adaec8 100644 --- a/lib/utils/api.py +++ b/lib/utils/api.py @@ -721,7 +721,9 @@ def client(host=RESTAPI_SERVER_HOST, port=RESTAPI_SERVER_PORT): taskid = None continue - cmdLineOptions = { k: v for k, v in cmdLineOptions.iteritems() if v is not None } + for key in list(cmdLineOptions): + if cmdLineOptions[key] is None: + del cmdLineOptions[key] raw = _client(addr + "/task/new") res = dejsonize(raw)