From 7a80d6de39b90926c4d9cad2626509e13aa90471 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Tue, 15 Oct 2013 11:33:28 -0400 Subject: [PATCH] python3: xrange no longer exists range now behaves like xrange did in Python 2. http://docs.python.org/3.1/whatsnew/3.0.html Change-Id: I71bef224fb6b0e972373a024f8b86355b5970827 Signed-off-by: Chuck Short --- glanceclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 0564df6..2ef5697 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -354,7 +354,7 @@ class VerifiedHTTPSConnection(HTTPSConnection): # Also try Subject Alternative Names for a match san_list = None - for i in xrange(x509.get_extension_count()): + for i in range(x509.get_extension_count()): ext = x509.get_extension(i) if ext.get_short_name() == 'subjectAltName': san_list = str(ext)