aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-07-11 15:01:32 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-07-11 15:01:32 -0400
commit0087f04cc370cd542069940f0ed10c583de158ee (patch)
tree13aaa5d80c9b874df0bdf8b4cfb38c6a8fc0b7be
parentc84d78f3f169bc5163d11b74837f9880b0b7dba4 (diff)
downloadkutter-0087f04cc370cd542069940f0ed10c583de158ee.tar.gz
kutter-0087f04cc370cd542069940f0ed10c583de158ee.tar.xz
kutter-0087f04cc370cd542069940f0ed10c583de158ee.zip
gcode: Minor change to suppress python warning on '\s'
Reported by @matdibu. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/gcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 7d980585..15ab624a 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -406,7 +406,7 @@ class GCodeIO:
self._dump_debug()
if self.is_fileinput:
self.printer.request_exit('error_exit')
- m112_r = re.compile('^(?:[nN][0-9]+)?\s*[mM]112(?:\s|$)')
+ m112_r = re.compile(r'^(?:[nN][0-9]+)?\s*[mM]112(?:\s|$)')
def _process_data(self, eventtime):
# Read input, separate by newline, and add to pending_commands
try: