Skip to content

pyseeyou is unmaintained and has invalid escape sequences #118

@jpmckinney

Description

@jpmckinney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions