Hooks always get the value of with_line_number, no need for a keyword argument there

This commit is contained in:
Gina Häußge committed 2014-11-10 13:00:18 +01:00
1 parent 3c53394f4b
commit 69bea0f5b0
1 file changed
+1 -1
@@ -882,7 +882,7 @@ class RepRapProtocol(Protocol):
#handle our hooks, if any
for hook in self._gcode_hooks[phase]:
command, with_line_number = hook(self, command, with_line_number=with_line_number)
command, with_line_number = hook(self, command, with_line_number)
if phase in self._preprocessors and command.command in self._preprocessors[phase]:
command, with_line_number = self._preprocessors[phase][command.command](command, with_line_number)