[Python-checkins] r42719 - python/trunk/Lib/traceback.py

thomas.wouters python-checkins at python.org
Wed Mar 1 06:34:28 CET 2006


Author: thomas.wouters
Date: Wed Mar 1 06:34:22 2006
New Revision: 42719
Modified:
 python/trunk/Lib/traceback.py
Log:
Remove redundant isinstance() check.
Modified: python/trunk/Lib/traceback.py
==============================================================================
--- python/trunk/Lib/traceback.py	(original)
+++ python/trunk/Lib/traceback.py	Wed Mar 1 06:34:22 2006
@@ -158,7 +158,7 @@
 """
 list = []
 if (type(etype) == types.ClassType
- or (isinstance(etype, type) and issubclass(etype, Exception))):
+ or issubclass(etype, Exception)):
 stype = etype.__name__
 else:
 stype = etype


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /