summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-01 05:34:22 (GMT)
committerThomas Wouters <thomas@python.org>2006-03-01 05:34:22 (GMT)
commit7c187bcc828fb844fa83a569e8512ad03ec294e1 (patch)
tree44fe091854e6185197d5342efe9946db9fb37ba4 /Lib
parent7f59732716816b6bed4c4d0e9d2a31425ddf03b5 (diff)
downloadcpython-7c187bcc828fb844fa83a569e8512ad03ec294e1.zip
cpython-7c187bcc828fb844fa83a569e8512ad03ec294e1.tar.gz
cpython-7c187bcc828fb844fa83a569e8512ad03ec294e1.tar.bz2
Remove redundant isinstance() check.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/traceback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index d4a4011..4971906 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -158,7 +158,7 @@ def format_exception_only(etype, value):
"""
list = []
if (type(etype) == types.ClassType
- or (isinstance(etype, type) and issubclass(etype, Exception))):
+ or issubclass(etype, Exception)):
stype = etype.__name__
else:
stype = etype