diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-09-22 10:33:21 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-09-22 10:33:21 (GMT) |
commit | f3b0639417bf788d9a7133ec26e52c406e6c8f4c (patch) | |
tree | fb4cad9ccebc8abd965b5e1a5bb272d44976a75d /Lib/traceback.py | |
parent | e3d504090cea1c4e01e9d8ebf241f9356cb1aba0 (diff) | |
parent | bb8b1cb6af830b40f9be398d1e1bf8bdca772140 (diff) | |
download | cpython-f3b0639417bf788d9a7133ec26e52c406e6c8f4c.zip cpython-f3b0639417bf788d9a7133ec26e52c406e6c8f4c.tar.gz cpython-f3b0639417bf788d9a7133ec26e52c406e6c8f4c.tar.bz2 |
Issue #27348: Merge exception formatting fix from 3.5 into 3.6
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index a1cb5fb..09bda71 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -140,7 +140,7 @@ def format_exception_only(etype, value): def _format_final_exc_line(etype, value): valuestr = _some_str(value) - if value == 'None' or value is None or not valuestr: + if value is None or not valuestr: line = "%s\n" % etype else: line = "%s: %s\n" % (etype, valuestr) |