Use py.builtin.callable
This restores compatibility with Python 3.0/3.1
This commit is contained in:
parent
75160547f2
commit
aa87395c39
|
@ -235,7 +235,7 @@ class TracebackEntry(object):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if callable(tbh):
|
if py.builtin.callable(tbh):
|
||||||
return tbh(self._excinfo)
|
return tbh(self._excinfo)
|
||||||
else:
|
else:
|
||||||
return tbh
|
return tbh
|
||||||
|
|
Loading…
Reference in New Issue