Skip to content

Commit

Permalink
Fix the version check in XenAPI.py
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information
Jon Ludlam committed Nov 2, 2012
1 parent cc17b24 commit faa83eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/examples/python/XenAPI.py
Expand Up @@ -102,7 +102,7 @@ def add_extra_header(self, key, value):
self._extra_headers += [ (key,value) ]
def make_connection(self, host):
# Python 2.4 compatibility
if sys.version_info[0] <= 2 and sys.version_info[1] < 6:
if sys.version_info[0] <= 2 and sys.version_info[1] < 7:
return UDSHTTP(host)
else:
return UDSHTTPConnection(host)
Expand Down

0 comments on commit faa83eb

Please sign in to comment.