proc: use __class__ attribute instead of type() function (makes difference on 2.4)

This commit is contained in:
Denis Bilenko
2009-05-19 16:09:17 +07:00
parent 5fd1a4ec75
commit 8eba50247f

View File

@@ -326,7 +326,7 @@ class Source(object):
if isinstance(self._exc[0], type):
return self._exc[0], None, None
else:
return type(self._exc[0]), self._exc[0], None
return self._exc[0].__class__, self._exc[0], None
elif len(self._exc)==2:
return self._exc[0], self._exc[1], None
else: