summaryrefslogtreecommitdiff
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-01 05:34:22 +0000
committerThomas Wouters <thomas@python.org>2006-03-01 05:34:22 +0000
commit245013747c5ad2eb5602beaf4d49d5d6bd31be74 (patch)
tree21938bbea1aa0004016d163826abde6ee97f3c4a /Lib/traceback.py
parent1efac6b37aa0ae3cbf2b982329af0581a4d49f04 (diff)
downloadcpython-245013747c5ad2eb5602beaf4d49d5d6bd31be74.tar.gz
Remove redundant isinstance() check.
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 d4a40114ea..497190656f 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