From 582b03f21fe3d808bf4e11bbba90af54b6651b34 Mon Sep 17 00:00:00 2001 From: MirceaDan Date: Sat, 1 Dec 2018 16:13:20 -0800 Subject: [PATCH] async is a function in py3 SyntaxError:Can't assign to function call declared the dictionary using a diferent format that works in both py2 and py3 /src/octoprint/server/api/system.py", line 192 async=True, ^ SyntaxError: invalid syntax --- src/octoprint/server/api/system.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/octoprint/server/api/system.py b/src/octoprint/server/api/system.py index e8fbcf9ef..d3b38edc4 100644 --- a/src/octoprint/server/api/system.py +++ b/src/octoprint/server/api/system.py @@ -187,10 +187,7 @@ def _get_core_command_specs(): for action, spec in commands.items(): if not spec["command"]: continue - spec.update(dict(action=action, - source="core", - async=True, - debug=True)) + spec.update({'action': action, 'source': 'core', 'async': True, 'debug': True}) available_commands[action] = spec return available_commands