diff --git a/tracext/git/PyGIT.py b/tracext/git/PyGIT.py index 8e8f7d3..8885429 100644 --- a/tracext/git/PyGIT.py +++ b/tracext/git/PyGIT.py @@ -6,7 +6,11 @@ from __future__ import with_statement -from future27 import namedtuple +try: + from collections import namedtuple +except ImportError: + from future27 import namedtuple + import os, re, sys, time, weakref from collections import deque diff --git a/tracext/git/git_fs.py b/tracext/git/git_fs.py index 54eac17..e3fa8f7 100644 --- a/tracext/git/git_fs.py +++ b/tracext/git/git_fs.py @@ -23,8 +23,8 @@ import sys import os -if not sys.version_info[:2] >= (2, 5): - raise TracError("Python >= 2.5 dependancy not met") +if not sys.version_info[:2] >= (2, 6): + raise TracError("Python >= 2.6 dependancy not met") import PyGIT