Merge "python3: xrange no longer exists"

This commit is contained in:
Jenkins 2013-11-26 13:35:28 +00:00 committed by Gerrit Code Review
commit 5d658bf5a8
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,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)