Commit 6a2a90b8 authored by Guillaume Seguin's avatar Guillaume Seguin

Workaround flake8 warning

parent 803e73b5
...@@ -559,6 +559,7 @@ class pronsole(cmd.Cmd): ...@@ -559,6 +559,7 @@ class pronsole(cmd.Cmd):
if macro_def.strip() == "": if macro_def.strip() == "":
self.logError("Empty macro - cancelled") self.logError("Empty macro - cancelled")
return return
macro = None
pycode = "def macro(self,*arg):\n" pycode = "def macro(self,*arg):\n"
if "\n" not in macro_def.strip(): if "\n" not in macro_def.strip():
pycode += self.compile_macro_line(" " + macro_def.strip()) pycode += self.compile_macro_line(" " + macro_def.strip())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment