aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-06-11 21:39:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-06-15 17:15:53 -0400
commitf5cdfad333655c2511a8c1a35c9d2f308cd411ac (patch)
treeb5056550c924c004f1051b64089a74c1baaf3d26 /klippy/mcu.py
parentca2e84abbae8b53534146edb8b0aacc769e121ee (diff)
downloadkutter-f5cdfad333655c2511a8c1a35c9d2f308cd411ac.tar.gz
kutter-f5cdfad333655c2511a8c1a35c9d2f308cd411ac.tar.xz
kutter-f5cdfad333655c2511a8c1a35c9d2f308cd411ac.zip
mcu: Avoid using "async" for variables as it conflicts with Python3
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 36e9c48d..16815548 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -337,14 +337,14 @@ class RetryAsyncCommand:
# Wrapper around query commands
class CommandQueryWrapper:
def __init__(self, serial, msgformat, respformat, oid=None,
- cmd_queue=None, async=False):
+ cmd_queue=None, is_async=False):
self._serial = serial
self._cmd = serial.get_msgparser().lookup_command(msgformat)
serial.get_msgparser().lookup_command(respformat)
self._response = respformat.split()[0]
self._oid = oid
self._xmit_helper = serialhdl.SerialRetryCommand
- if async:
+ if is_async:
self._xmit_helper = RetryAsyncCommand
if cmd_queue is None:
cmd_queue = serial.get_default_command_queue()
@@ -650,9 +650,9 @@ class MCU:
def lookup_command(self, msgformat, cq=None):
return CommandWrapper(self._serial, msgformat, cq)
def lookup_query_command(self, msgformat, respformat, oid=None,
- cq=None, async=False):
+ cq=None, is_async=False):
return CommandQueryWrapper(self._serial, msgformat, respformat, oid,
- cq, async)
+ cq, is_async)
def try_lookup_command(self, msgformat):
try:
return self.lookup_command(msgformat)