Skip to content
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

pyseeyou is unmaintained and has invalid escape sequences #118

Open
jpmckinney opened this issue Aug 15, 2024 · 1 comment
Open

pyseeyou is unmaintained and has invalid escape sequences #118

jpmckinney opened this issue Aug 15, 2024 · 1 comment

Comments

@jpmckinney
Copy link

jpmckinney commented Aug 15, 2024

These invalid escape sequences are upgraded to syntax errors if running code with -W error.

There is an abandoned PR to fix it here: https://github.com/rolepoint/pyseeyou/pull/17/files

The package is essentially unmaintained.

It would be great if this dependency were removed, or if it were made optional (as a package extra). In future Python versions, these warnings will be errors even without -W error.

A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw strings for regular expression: re.compile(r"\d+.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.)

https://docs.python.org/3/whatsnew/3.12.html

@karlstenlund
Copy link

Agree we keep getting these warnings now.

<unknown>:1: SyntaxWarning: invalid escape sequence '\w'
<unknown>:1: SyntaxWarning: invalid escape sequence '\w'
<unknown>:1: SyntaxWarning: invalid escape sequence '\w'
<unknown>:1: SyntaxWarning: invalid escape sequence '\.'
<unknown>:1: SyntaxWarning: invalid escape sequence '\s'

It's really annoying not knowing where the errors come from so hopefully this comment will help finding possible sources, transifex-python is one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants