Patch for Python 2.6 (SyntaxError)

This commit is contained in:
Miroslav Stampar 2015-09-15 17:23:59 +02:00
parent 058870635b
commit c59ead36ce

View File

@ -721,7 +721,9 @@ def client(host=RESTAPI_SERVER_HOST, port=RESTAPI_SERVER_PORT):
taskid = None taskid = None
continue 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") raw = _client(addr + "/task/new")
res = dejsonize(raw) res = dejsonize(raw)