Skip to content

Lots of "invalid escape sequence" in regex sequences not prefixed with r on python 3.12 #32

@RegentOfOrigin

Description

@RegentOfOrigin

All scripts that contain regexes not prefixed with the r character complain aboutSyntaxWarning: invalid escape sequence XX for all escape sequences. Can be simply resolved by throwing an r in front of the strings (used on some sequences but not all).

Easiest way I found was to do a search for:
re.search
re.sub
compile

And I think that caught all the instances?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions