mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-15 02:37:52 -06:00
klippy: Prefer python dictionary comprehension to dict() call
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
38411fd2e7
commit
01ee9e16c5
3 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue