summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-10-21 07:09:39 (GMT)
committerGitHub <noreply@github.com>2018-10-21 07:09:39 (GMT)
commitd31e7730cd5d74efbd7320751dacd51d09cc415d (patch)
tree2ec0ee3852041197d9dda25b4e9eb6a4f5c2c9ca /Misc
parent2f73ed69130cdf63b773275f430c9abdab0757ad (diff)
downloadcpython-d31e7730cd5d74efbd7320751dacd51d09cc415d.zip
cpython-d31e7730cd5d74efbd7320751dacd51d09cc415d.tar.gz
cpython-d31e7730cd5d74efbd7320751dacd51d09cc415d.tar.bz2
bpo-35029: Replace the SyntaxWarning exception with a SyntaxError. (GH-9999)
If SyntaxWarning was raised as an exception, it will be replaced with a SyntaxError for better error reporting.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-10-20-10-26-15.bpo-35029.t4tZcQ.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-10-20-10-26-15.bpo-35029.t4tZcQ.rst b/Misc/NEWS.d/next/Core and Builtins/2018-10-20-10-26-15.bpo-35029.t4tZcQ.rst
new file mode 100644
index 0000000..3644c44
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-10-20-10-26-15.bpo-35029.t4tZcQ.rst
@@ -0,0 +1,2 @@
+:exc:`SyntaxWarning` raised as an exception at code generation time will be
+now replaced with a :exc:`SyntaxError` for better error reporting.