From a916b74c71b14d3687931ac4ef937738fcc8123e Mon Sep 17 00:00:00 2001 From: fijal Date: Sat, 4 Aug 2007 16:24:37 +0200 Subject: [PATCH] [svn r45483] Fix 2.5 issue when str(excinfo.type) produced different thing than expected --HG-- branch : trunk --- py/code/excinfo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/code/excinfo.py b/py/code/excinfo.py index eddd8e69a..5b760c393 100644 --- a/py/code/excinfo.py +++ b/py/code/excinfo.py @@ -19,6 +19,9 @@ class ExceptionInfo(object): 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):