diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-21 07:09:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-21 07:09:39 (GMT) |
commit | d31e7730cd5d74efbd7320751dacd51d09cc415d (patch) | |
tree | 2ec0ee3852041197d9dda25b4e9eb6a4f5c2c9ca /Misc | |
parent | 2f73ed69130cdf63b773275f430c9abdab0757ad (diff) | |
download | cpython-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.rst | 2 |
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. |