From 93cbd0b7eb702c07eb90cac380afd8d3fcd2b8fa Mon Sep 17 00:00:00 2001 From: Philip Thiem Date: Tue, 19 Feb 2013 19:17:54 -0600 Subject: It would seem that python 3.1 lacked the keyword "callable" --- tox/_config.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tox/_config.py b/tox/_config.py index 9bc0d0f..086bb36 100644 --- a/tox/_config.py +++ b/tox/_config.py @@ -12,6 +12,15 @@ import py 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": -- cgit v1.2.1