https://bugzilla.redhat.com/show_bug.cgi?id=2280062



--- Comment #14 from Ben Beasley <[email protected]> ---
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


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2280062

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202280062%23c14
--
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to