]> granicus.if.org Git - python/commit
[3.8] bpo-32912: Revert SyntaxWarning on invalid escape sequences (GH-15142)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 9 Aug 2019 22:34:22 +0000 (01:34 +0300)
committerGregory P. Smith <greg@krypto.org>
Fri, 9 Aug 2019 22:34:22 +0000 (15:34 -0700)
commit4c5b6bac2408f879231c7cd38d67657dd4804e7c
tree71c68d4bea17e42da6f071920c48c2492c77fe38
parent217077440a6938a0b428f67cfef6e053c4f8673c
[3.8] bpo-32912: Revert SyntaxWarning on invalid escape sequences (GH-15142)

* bpo-32912: Revert warnings for invalid escape sequences.

DeprecationWarning will continue to be emitted for invalid escape sequences in string and bytes literals in 3.8 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.
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