From 929574f22d8a92383b146f8a992c1707da895632 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 12 Oct 2009 20:49:05 +0000 Subject: Proxy: patch version checking code to work on releases with strings in the names. Patch from Guilhem Lettron (Resolves Ticket #761) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5481 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py index 56390bf40..2047e3b97 100644 --- a/src/lib/Proxy.py +++ b/src/lib/Proxy.py @@ -34,7 +34,7 @@ import time import urlparse import xmlrpclib -version = string.split(string.split(sys.version)[0], ".") +version = sys.version_info[:2] has_py23 = map(int, version) >= [2, 3] has_py26 = map(int, version) >= [2, 6] -- cgit v1.2.3-1-g7c22