Python 3.12 upgraded its DeprecationWarning (added in Python 3.6) to a SyntaxWarning for not-valid escape characters. As a result, the \d and \. searches are now being flagged as such.
This fixes them by adding the correct escape level before before a future Python release makes it a hard SyntaxError.
DeprecationWarning
(added in Python 3.6) to aSyntaxWarning
for not-valid escape characters. As a result, the\d
and\.
searches are now being flagged as such.SyntaxError
.