-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"SyntaxWarning: invalid escape sequence \(" #801
Comments
Still an issue as of Feb 2025. utils.py:300: SyntaxWarning: invalid escape sequence '\('
m = re.match('([su]([0-9]{1,2})p?) \(([0-9]{1,2}) bit\)$', token)
utils.py:301: SyntaxWarning: invalid escape sequence '\('
m2 = re.match('([su]([0-9]{1,2})p?)( \(default\))?$', token)
utils.py:310: SyntaxWarning: invalid escape sequence '\('
elif re.match('(flt)p?( \(default\))?$', token):
utils.py:314: SyntaxWarning: invalid escape sequence '\('
elif re.match('(dbl)p?( \(default\))?$', token):
indexing/loaders.py:25: SyntaxWarning: invalid escape sequence '\d'
match = re.match("doclens.(\d+).json", filename) |
ifosch
pushed a commit
to EDyO/appu
that referenced
this issue
Mar 16, 2025
This adds `pytest` testing for the new `appu` subcommand, and the code provided. Those tests are also included in the `test` pipeline to test the subcommand within the CI pipeline. This uses a container to run the tests, so it also validates building the APPU 2's container. All the other steps in the CI pipeline, are selected to skip when requesting to pull from a branch with `revamp` in the name. Ideally, this should prevent issues between revamping changes and other possible changes coming in. The `PYTHONWARNINGS` environment variable in the Dockerfile is provided to prevent weird output caused by [an issue with `pydub` and regular expression support for Python 3.12](jiaaro/pydub#801).
Yep. Me too:
|
Same here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, on Python v3.12 it shows the error:
SyntaxWarning: invalid escape sequence '(
SyntaxWarning: invalid escape sequence ')
On v3.12 changed the meaning of the regular expressions, and in places where was used
\.
now is only.
.So "utils.py" must be corrected from line 299:
Cheers.
The text was updated successfully, but these errors were encountered: