From: Thomas Wouters Date: Wed, 1 Mar 2006 05:34:22 +0000 (+0000) Subject: Remove redundant isinstance() check. X-Git-Tag: v2.5a0~446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c187bcc828fb844fa83a569e8512ad03ec294e1;p=thirdparty%2FPython%2Fcpython.git Remove redundant isinstance() check. --- diff --git a/Lib/traceback.py b/Lib/traceback.py index d4a40114ea19..497190656f8f 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