From 5127e167328c7da2593fea98a27b27bb0acece68 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 13 Jun 2011 19:43:39 +0200 Subject: Fixed implementation of _version_info which didn't work for python 2.4 thanks to the rpartition method. omg --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/cmd.py') diff --git a/git/cmd.py b/git/cmd.py index 22a8924b..b3ca0f48 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -224,7 +224,7 @@ class Git(LazyMixin): def _set_cache_(self, attr): if attr == '_version_info': # We only use the first 4 numbers, as everthing else could be strings in fact (on windows) - version_numbers = self._call_process('version').rpartition(' ')[2] + version_numbers = self._call_process('version').split(' ')[2] self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4]) else: super(Git, self)._set_cache_(attr) -- cgit v1.2.1