https://bugzilla.redhat.com/show_bug.cgi?id=2280062
--- Comment #14 from Ben Beasley code@musicinmybrain.net --- I noticed this in the build logs:
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 Bytecompiling .py files below /builddir/build/BUILDROOT/python-exrex-0.11.0-1.fc41.x86_64/usr/lib/python3.12 using python3.12 /usr/lib/python3.12/site-packages/exrex.py:54: SyntaxWarning: invalid escape sequence '\w' /usr/lib/python3.12/site-packages/exrex.py:56: SyntaxWarning: invalid escape sequence '\W' /usr/lib/python3.12/site-packages/exrex.py:54: SyntaxWarning: invalid escape sequence '\w' /usr/lib/python3.12/site-packages/exrex.py:56: SyntaxWarning: invalid escape sequence '\W'
This doesn’t *have* to be fixed, but it reflects improper escaping of regexes. I was going to say that this is something we can easily help upstream fix, but someone beat us to it in https://github.com/asciimoo/exrex/pull/69.
It wouldn’t hurt to apply this PR as a patch by adding
# fix invalid escape sequence in regex # https://github.com/asciimoo/exrex/pull/69 Patch: https://github.com/asciimoo/exrex/pull/69.patch
and changing
%autosetup -n exrex-%{version}
to
%autosetup -n exrex-%{version} -p1