diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-05-11 00:41:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 00:41:26 (GMT) |
commit | 5b956ca42de37c761562e9c9aeb96a0e67606e33 (patch) | |
tree | 5f7ce29546bf89d847ae222a91acc924af84c949 /Misc | |
parent | 2cc9b8486dd924214f9e5657672fdeb24449d206 (diff) | |
download | cpython-5b956ca42de37c761562e9c9aeb96a0e67606e33.zip cpython-5b956ca42de37c761562e9c9aeb96a0e67606e33.tar.gz cpython-5b956ca42de37c761562e9c9aeb96a0e67606e33.tar.bz2 |
bpo-40585: Normalize errors messages in codeop when comparing them (GH-20030)
With the new parser, the error message contains always the trailing
newlines, causing the comparison of the repr of the error messages
in codeop to fail. This commit makes the new parser mirror the old parser's
behaviour regarding trailing newlines.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-05-11-00-19-42.bpo-40585.yusknY.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-11-00-19-42.bpo-40585.yusknY.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-11-00-19-42.bpo-40585.yusknY.rst new file mode 100644 index 0000000..7a9258e --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-11-00-19-42.bpo-40585.yusknY.rst @@ -0,0 +1,2 @@ +Fixed a bug when using :func:`codeop.compile_command` that was causing +exceptions to be swallowed with the new parser. Patch by Pablo Galindo |