[py-svn] r45483 - py/trunk/py/code
fijal at codespeak.net
fijal at codespeak.net
Sat Aug 4 16:24:38 CEST 2007
Author: fijal
Date: Sat Aug 4 16:24:37 2007
New Revision: 45483
Modified:
py/trunk/py/code/excinfo.py
Log:
Fix 2.5 issue when str(excinfo.type) produced different thing than expected
Modified: py/trunk/py/code/excinfo.py
==============================================================================
--- py/trunk/py/code/excinfo.py (original)
+++ py/trunk/py/code/excinfo.py Sat Aug 4 16:24:37 2007
@@ -19,6 +19,9 @@
self._excinfo = tup
self.type, self.value, tb = self._excinfo
self.typename = str(self.type)
+ if issubclass(self.type, object):
+ # cpy 2.5
+ self.typename = self.typename[7:-2]
self.traceback = py.code.Traceback(tb)
def exconly(self, tryshort=False):
More information about the py-svn
mailing list