Skip to content

Commit c59ead3

Browse files
committed
Patch for Python 2.6 (SyntaxError)
1 parent 0588706 commit c59ead3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/utils/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,9 @@ def client(host=RESTAPI_SERVER_HOST, port=RESTAPI_SERVER_PORT):
721721
taskid = None
722722
continue
723723

724-
cmdLineOptions = { k: v for k, v in cmdLineOptions.iteritems() if v is not None }
724+
for key in list(cmdLineOptions):
725+
if cmdLineOptions[key] is None:
726+
del cmdLineOptions[key]
725727

726728
raw = _client(addr + "/task/new")
727729
res = dejsonize(raw)

0 commit comments

Comments
 (0)