diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-10-12 20:49:05 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-10-12 20:49:05 +0000 |
commit | 929574f22d8a92383b146f8a992c1707da895632 (patch) | |
tree | e07e96fd78d3f7665c16eb34bf7f336db8b87c3e /src/lib | |
parent | 7876dfaad68d7644a7d238681aa2eb99dfbda170 (diff) | |
download | bcfg2-929574f22d8a92383b146f8a992c1707da895632.tar.gz bcfg2-929574f22d8a92383b146f8a992c1707da895632.tar.bz2 bcfg2-929574f22d8a92383b146f8a992c1707da895632.zip |
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
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |