mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
stop using six.moves.xrange
This commit is contained in:
parent
9327f43828
commit
08271105ee
2 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,6 @@ import socket
|
|||
|
||||
import requests
|
||||
import six
|
||||
from six.moves import xrange
|
||||
|
||||
from acme import crypto_util
|
||||
from acme import errors as acme_errors
|
||||
|
|
@ -62,7 +61,7 @@ class Validator(object):
|
|||
else:
|
||||
response = requests.get(url, allow_redirects=False)
|
||||
|
||||
return response.status_code in xrange(300, 309)
|
||||
return response.status_code in range(300, 309)
|
||||
|
||||
def hsts(self, name):
|
||||
"""Test for HTTP Strict Transport Security header"""
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ class Statements(Parsable):
|
|||
def _space_list(list_):
|
||||
""" Inserts whitespace between adjacent non-whitespace tokens. """
|
||||
spaced_statement = [] # type: List[str]
|
||||
for i in reversed(six.moves.xrange(len(list_))):
|
||||
for i in reversed(range(len(list_))):
|
||||
spaced_statement.insert(0, list_[i])
|
||||
if i > 0 and not list_[i].isspace() and not list_[i-1].isspace():
|
||||
spaced_statement.insert(0, " ")
|
||||
|
|
|
|||
Loading…
Reference in a new issue