Commits

philip_thiem committed e08ad7b

It would seem that python 3.1 lacked the keyword "callable"

  • Participants
  • Parent commits 586fd3d
  • Branches develop-pip-win32

Comments (0)

Files changed (1)

 
 import tox
 
+#needed if supporting 3.1 as they had removed callable
+import collections
+try:
+    callable = callable
+except NameError:
+    def callable(x):
+        return isinstance(x, collections.Callable)
+
+
 defaultenvs = {'jython': 'jython', 'pypy': 'pypy'}
 for _name in "py,py24,py25,py26,py27,py30,py31,py32,py33,py34".split(","):
     if _name == "py":