twitter-api-client
twitter-api-client copied to clipboard
Python 3.12 and raw/regex warnings
/Users/reagle/.pyenv/versions/3.12.1/lib/python3.12/site-packages/twitter/constants.py:64: SyntaxWarning: invalid escape sequence '\d'
'UserMedia': '^tweet-\d+$',
A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw strings for regular expression: re.compile(r"\d+.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.)
This is supposedly easily addressed with pyupgrade.