diff options
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index c6f7248b..8e1dca2b 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -40,7 +40,7 @@ class GCodeParser: handlers = [h for h in handlers if getattr(self, 'cmd_'+h+'_when_not_ready', False)] gcode_handlers = { h: getattr(self, 'cmd_'+h) for h in handlers } - for h, f in gcode_handlers.items(): + for h, f in list(gcode_handlers.items()): aliases = getattr(self, 'cmd_'+h+'_aliases', []) gcode_handlers.update({ a: f for a in aliases }) return gcode_handlers |