]> granicus.if.org Git - python/commit
bpo-32912: Revert SyntaxWarning on invalid escape sequences. (GH-15195)
authorGregory P. Smith <greg@krypto.org>
Sat, 10 Aug 2019 07:19:07 +0000 (00:19 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Aug 2019 07:19:07 +0000 (00:19 -0700)
commitb4be87a04a2a8ccfd2480e19dc527589fce53555
tree1a5d702c094d9f502f702d0c809ee4019dd54538
parent92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d
bpo-32912: Revert SyntaxWarning on invalid escape sequences. (GH-15195)

DeprecationWarning will continue to be emitted for invalid escape
sequences in string and bytes literals just as it did in 3.7.

SyntaxWarning may be emitted in the future. But per mailing list
discussion, we don't yet know when because we haven't settled on how to
do so in a non-disruptive manner.

(Applies 4c5b6bac2408f879231c7cd38d67657dd4804e7c to the master branch).
(This is https://github.com/python/cpython/pull/15142 for master/3.9)

https://bugs.python.org/issue32912

Automerge-Triggered-By: @gpshead
Doc/reference/lexical_analysis.rst
Doc/whatsnew/3.8.rst
Lib/test/test_fstring.py
Lib/test/test_string_literals.py
Misc/NEWS.d/next/Core and Builtins/2019-08-06-14-03-59.bpo-32912.UDwSMJ.rst [new file with mode: 0644]
Python/ast.c