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
This commit is contained in:
MirceaDan committed 2018-12-01 16:13:20 -08:00
1 parent f72f948744
commit 582b03f21f
1 file changed
+1 -4
+1 -4
View File
@@ -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