Use py.builtin.callable

This restores compatibility with Python 3.0/3.1
This commit is contained in:
Florian Bruhin 2016-04-20 11:18:47 +02:00
parent 75160547f2
commit aa87395c39
1 changed files with 1 additions and 1 deletions

View File

@ -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