[pypy-svn] r8718 - pypy/dist/pypy/lib

arigo at codespeak.net arigo at codespeak.net
Sat Jan 29 15:48:15 CET 2005


Author: arigo
Date: Sat Jan 29 15:48:15 2005
New Revision: 8718

Added:
   pypy/dist/pypy/lib/traceback.py
      - copied, changed from r8714, pypy/dist/lib-python-2.3.4/traceback.py
Log:
Minor fix for new-style-class exceptions.


Copied: pypy/dist/pypy/lib/traceback.py (from r8714, pypy/dist/lib-python-2.3.4/traceback.py)
==============================================================================
--- pypy/dist/lib-python-2.3.4/traceback.py	(original)
+++ pypy/dist/pypy/lib/traceback.py	Sat Jan 29 15:48:15 2005
@@ -155,7 +155,7 @@
     which exception occurred is the always last string in the list.
     """
     list = []
-    if type(etype) == types.ClassType:
+    if isinstance(etype, (type, types.ClassType)):
         stype = etype.__name__
     else:
         stype = etype



More information about the Pypy-commit mailing list