diff --git a/scripts/examples/python/XenAPI.py b/scripts/examples/python/XenAPI.py index a7cdce8139..3f5e06cbb3 100644 --- a/scripts/examples/python/XenAPI.py +++ b/scripts/examples/python/XenAPI.py @@ -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)