You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's my understanding this can be fixed either by either escaping the backslashes (re.match('list\\[(.*)\\]', klass).group(1)) or by using a raw string literal (re.match(r'list\[(.*)\]', klass).group(1).
The text was updated successfully, but these errors were encountered:
Hi @joshkersey Thanks for notifying us! Do you receive this when running something in particular or is this something you're able to reproduce all the time?
Hi @joshkersey Thanks for notifying us! Do you receive this when running something in particular or is this something you're able to reproduce all the time?
This happens when the library is imported. It's documented here:
Changed in version 3.12: Unrecognized escape sequences produce a SyntaxWarning. In a future Python version they will be eventually a SyntaxError.
When running in Python 3.12 we see
SyntaxWarning
being raised for a couple regex strings:It's my understanding this can be fixed either by either escaping the backslashes (
re.match('list\\[(.*)\\]', klass).group(1)
) or by using a raw string literal (re.match(r'list\[(.*)\]', klass).group(1)
.The text was updated successfully, but these errors were encountered: