diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-06-06 12:35:13 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-06-06 12:35:13 -0400 |
commit | 01ee9e16c5f7820b74d1018c130a842767edd44b (patch) | |
tree | 576b2cf5838812e13f410b3cde2bc5d216cb537a /klippy/serialhdl.py | |
parent | 38411fd2e7610eb8049645d4318bcec1f472218b (diff) | |
download | kutter-01ee9e16c5f7820b74d1018c130a842767edd44b.tar.gz kutter-01ee9e16c5f7820b74d1018c130a842767edd44b.tar.xz kutter-01ee9e16c5f7820b74d1018c130a842767edd44b.zip |
klippy: Prefer python dictionary comprehension to dict() call
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/serialhdl.py')
-rw-r--r-- | klippy/serialhdl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py index 85e3b80e..d6179a4b 100644 --- a/klippy/serialhdl.py +++ b/klippy/serialhdl.py @@ -40,7 +40,7 @@ class SerialReader: '#output': self.handle_output, 'status': self.handle_status, 'shutdown': self.handle_output, 'is_shutdown': self.handle_output } - self.handlers = dict(((k, None), v) for k, v in handlers.items()) + self.handlers = { (k, None): v for k, v in handlers.items() } def _bg_thread(self): response = self.ffi_main.new('struct pull_queue_message *') while 1: |