Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete a warning with Python 3.12 #1048

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

benoit9126
Copy link
Contributor

With Python 3.12, a warning is emitted from the settings.py file.

grappelli/settings.py:27: SyntaxWarning: invalid escape sequence '\d'
  SWITCH_USER_REGEX = getattr(settings, "GRAPPELLI_SWITCH_USER_REGEX", "\d+")

A simple raw string solves it.

@sehmaschine sehmaschine merged commit 8a794f7 into sehmaschine:master Mar 13, 2024
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.

None yet

2 participants