From 01ee9e16c5f7820b74d1018c130a842767edd44b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 6 Jun 2017 12:35:13 -0400 Subject: klippy: Prefer python dictionary comprehension to dict() call Signed-off-by: Kevin O'Connor --- klippy/serialhdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/serialhdl.py') 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: -- cgit v1.2.3-70-g09d2