From e301c09e24096bfd9a905fa1446caa869b774a77 Mon Sep 17 00:00:00 2001 From: Max Gaukler Date: Sun, 10 Nov 2024 10:08:12 +0100 Subject: [PATCH] Inkscape extension: Fix SyntaxWarning --- tools/inkscape_extension/visicut_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/inkscape_extension/visicut_export.py b/tools/inkscape_extension/visicut_export.py index 78c6d952..50deef4d 100755 --- a/tools/inkscape_extension/visicut_export.py +++ b/tools/inkscape_extension/visicut_export.py @@ -142,7 +142,7 @@ def inkscape_version(): """Return Inkscape version number as float, e.g. version "0.92.4" --> return: float 0.92""" version = subprocess.check_output([INKSCAPEBIN, "--version"], stderr=DEVNULL).decode('ASCII', 'ignore') assert version.startswith("Inkscape ") - match = re.match("Inkscape ([0-9]+\.[0-9]+).*", version) + match = re.match(r"Inkscape ([0-9]+\.[0-9]+).*", version) assert match is not None version_float = float(match.group(1)) return version_float