-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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.)