Skip to content

Fix invalid escape sequence for Python 3.12#422

Open
shifanatk wants to merge 1 commit intometabrainz:2.0from
shifanatk:fix-classical-extras-regex
Open

Fix invalid escape sequence for Python 3.12#422
shifanatk wants to merge 1 commit intometabrainz:2.0from
shifanatk:fix-classical-extras-regex

Conversation

@shifanatk
Copy link

Summary

This PR fixes SyntaxWarning issues regarding invalid escape sequences that occur when running the plugin with Python 3.12.

Changes

  • Added the r (raw string) prefix to regular expression patterns in plugins/classical_extras/__init__.py.
  • Specifically addressed the \W escape sequences that were causing syntax warnings.

Related Issues

Fixes the Python 3.12 syntax errors mentioned in Issue #417.

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.

1 participant