diff options
author | 2006-03-01 05:34:22 +0000 | |
---|---|---|
committer | 2006-03-01 05:34:22 +0000 | |
commit | 7c187bcc828fb844fa83a569e8512ad03ec294e1 (patch) | |
tree | 44fe091854e6185197d5342efe9946db9fb37ba4 /Lib/traceback.py | |
parent | Put back the essence of Jeremy's original XXX comment. (diff) | |
download | cpython-7c187bcc828fb844fa83a569e8512ad03ec294e1.tar.gz cpython-7c187bcc828fb844fa83a569e8512ad03ec294e1.tar.bz2 cpython-7c187bcc828fb844fa83a569e8512ad03ec294e1.zip |
Remove redundant isinstance() check.
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 d4a40114ea1..497190656f8 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 |