Skip to content

SyntaxWarning: invalid escape sequence in fixTrailing regex #14

Open

Description

@dpc00

Claude reports:

boundkeys.py line 37 gives a SyntaxWarning on newer Python: re.compile("%s\s+%s" % ...) uses \s in a normal string (SyntaxWarning: "\s" is an invalid escape sequence, seen in the console on Sublime Text build 4215, Python 3.14). Writing it as r"%s\s+%s" should remove it with the pattern unchanged (I did not test that change). Only a warning for now; it becomes an error in a future Python.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions