diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-19 14:42:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 14:42:06 (GMT) |
commit | 6543912c90ffa579dc4c01e811f9609cf92197d3 (patch) | |
tree | 44f433f463ad6624814d0f3c556501eeefb862b8 /Misc | |
parent | 209144831b0a19715bda3bd72b14a3e6192d9cc1 (diff) | |
download | cpython-6543912c90ffa579dc4c01e811f9609cf92197d3.zip cpython-6543912c90ffa579dc4c01e811f9609cf92197d3.tar.gz cpython-6543912c90ffa579dc4c01e811f9609cf92197d3.tar.bz2 |
bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652)
for invalid escape sequences in string and bytes literals.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-10-01-10-41-53.bpo-32912.JeIOdM.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-10-01-10-41-53.bpo-32912.JeIOdM.rst b/Misc/NEWS.d/next/Core and Builtins/2018-10-01-10-41-53.bpo-32912.JeIOdM.rst new file mode 100644 index 0000000..9cb3599 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-10-01-10-41-53.bpo-32912.JeIOdM.rst @@ -0,0 +1,2 @@ +A :exc:`SyntaxWarning` is now emitted instead of a :exc:`DeprecationWarning` +for invalid escape sequences in string and bytes literals. |