Closed AmeyaVS closed 3 months ago
How did you get this warning?
Updated the test:
prefix to the commit message.
How did you get this warning?
I am actually on a system with pretty recent Python 3.12, and it complains on escaped strings to be converted to raw strings.
Here's a reference for traceability from docs.python.org
:
https://docs.python.org/3/whatsnew/3.12.html#other-language-changes
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.)
Fixes the following
SyntaxWarning:
from the Python Interpreter: