From eb0c7e60fc54fdfdc3d1c4d00fd5053c63474476 Mon Sep 17 00:00:00 2001 From: Ian Jones Date: Thu, 24 Nov 2011 23:35:10 -0800 Subject: [PATCH 1/2] add compatibility for 2.7 --- tracext/git/PyGIT.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 From 35294eada294339ddcd285f39832ba85c6db07dc Mon Sep 17 00:00:00 2001 From: Ian Jones Date: Thu, 24 Nov 2011 23:36:07 -0800 Subject: [PATCH 2/2] raise requirement to 2.6 as it's not 2.5 capable (POpen.terminate, *args, kw=Value) --- tracext/git/git_fs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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