Skip to content

Commit

Permalink
Inkscape extension: Fix SyntaxWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmax committed Nov 10, 2024
1 parent 394eb4c commit e301c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/inkscape_extension/visicut_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e301c09

Please sign in to comment.