From d22b30342a752341dcd7bf245ad938b3a68ba6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Wed, 26 Sep 2018 08:23:45 +0300 Subject: [PATCH] gcode_macro: 2 lines wrapped at 80 chars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janar Sööt --- klippy/extras/gcode_macro.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/klippy/extras/gcode_macro.py b/klippy/extras/gcode_macro.py index 6ee243c8..5e93e360 100644 --- a/klippy/extras/gcode_macro.py +++ b/klippy/extras/gcode_macro.py @@ -12,14 +12,16 @@ class GCodeMacro: printer = config.get_printer() self.gcode = printer.lookup_object('gcode') try: - self.gcode.register_command(self.alias, self.cmd, desc=self.cmd_desc) + self.gcode.register_command( + self.alias, self.cmd, desc=self.cmd_desc) except self.gcode.error as e: raise config.error(str(e)) self.in_script = False cmd_desc = "G-Code macro" def cmd(self, params): if self.in_script: - raise self.gcode.error("Macro %s called recursively" % (self.alias,)) + raise self.gcode.error( + "Macro %s called recursively" % (self.alias,)) script = "" try: script = self.script.format(**params)