From 31fe9347e5eb920668924c0daed139cc1e47a6ab Mon Sep 17 00:00:00 2001 From: fijal Date: Tue, 7 Aug 2007 18:19:35 +0200 Subject: [PATCH] [svn r45535] Avoid hacks when creating exception name --HG-- branch : trunk --- py/code/excinfo.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/py/code/excinfo.py b/py/code/excinfo.py index 5b760c393..5c8bb974e 100644 --- a/py/code/excinfo.py +++ b/py/code/excinfo.py @@ -18,10 +18,7 @@ class ExceptionInfo(object): self._striptext = 'AssertionError: ' 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.typename = self.type.__module__ + '.' + self.type.__name__ self.traceback = py.code.Traceback(tb) def exconly(self, tryshort=False):