Skip to content

Conversation

dcode
Copy link

@dcode dcode commented Jul 25, 2025

The regex string '\W+' causes a SyntaxWarning in Python 3.12 and later, since this is an invalid escape sequence. It will eventually become a SyntaxError in later versions. Changing this to a raw string will prevent it from being misinterpreted as an escape sequence.

Fixes #139

The regex string `'\W+'` causes a `SyntaxWarning` in Python 3.12 and later, since this is an invalid escape sequence. It will eventually become a `SyntaxError` in later versions. Changing this to a raw string will prevent it from being misinterpreted as an escape sequence.
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

Successfully merging this pull request may close these issues.

SyntaxWarning: invalid escape sequence '\W'
1 participant