Commits

Simon Sapin  committed caad797

Fix Python 3.1 compat (callable)

  • Participants
  • Parent commits 022b895

Comments (0)

Files changed (1)

 import types
 
+try:
+    callable
+except NameError:
+    # Python 3.1
+    from collections import Callable
+    callable = lambda x: isinstance(x, Callable)
+
+
 class FFIError(Exception):
     pass