Use py.builtin.callable
This restores compatibility with Python 3.0/3.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user