#1142155 python3-vtk9: Syntax Warning during install

Package:
python3-vtk9
Source:
python3-vtk9
Description:
Python bindings for VTK
Submitter:
Date:
2026-07-16 00:25:03 UTC
Severity:
normal
Tags:
#1142155#5
Date:
2026-07-16 00:23:28 UTC
From:
To:
Python complains about a syntax error during installation.

```
/usr/lib/python3/dist-packages/vtkmodules/web/testing.py:687: SyntaxWarning: invalid escape sequence '\.'
  fnamePattern = re.compile("([^\.\/\\\]+)\.py")
/usr/lib/python3/dist-packages/vtkmodules/web/testing.py:687: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
  fnamePattern = re.compile("([^\.\/\\\]+)\.py")
```

`"([^\.\/\\\]+)\.py"` isn't a valid string and the resulting regular expression only works by accident. It should be replaced with `r"([^./\\]+)\.py"` to get the intended behavior.