summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-22 10:33:21 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-22 10:33:21 (GMT)
commitf3b0639417bf788d9a7133ec26e52c406e6c8f4c (patch)
treefb4cad9ccebc8abd965b5e1a5bb272d44976a75d /Lib/traceback.py
parente3d504090cea1c4e01e9d8ebf241f9356cb1aba0 (diff)
parentbb8b1cb6af830b40f9be398d1e1bf8bdca772140 (diff)
downloadcpython-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.py2
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)