Commits

Armin Rigo  committed 1f75661 Merge

Merged in SimonSapin/cffi (pull request #6: Fix Python 3.1 compat (callable))

  • Participants
  • Parent commits df807c9, caad797

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