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:
|
||||
return False
|
||||
|
||||
if callable(tbh):
|
||||
if py.builtin.callable(tbh):
|
||||
return tbh(self._excinfo)
|
||||
else:
|
||||
return tbh
|
||||
|
|
Loading…
Reference in New Issue