summaryrefslogtreecommitdiffstats
path: root/openstack/common/authutils.py
diff options
context:
space:
mode:
authorChuck Short <chuck.short@canonical.com>2013-05-01 10:25:40 -0500
committerChuck Short <chuck.short@canonical.com>2013-05-01 10:34:16 -0500
commit46e6c86ed42bf3f93ea918e83ab186de18e4c3dd (patch)
treefb25bcc3755517a3ae500e144af46818eccc7813 /openstack/common/authutils.py
parent0c9047cc334578f9f4974c3bc006ba9bc62814d2 (diff)
downloadoslo-46e6c86ed42bf3f93ea918e83ab186de18e4c3dd.tar.gz
oslo-46e6c86ed42bf3f93ea918e83ab186de18e4c3dd.tar.xz
oslo-46e6c86ed42bf3f93ea918e83ab186de18e4c3dd.zip
Use range rather than xrange
Use range rather than xrange to improve python3 compatibiltiy. Change-Id: I5a4434bbd2e5d509f84c3aa668eea8e46262816f Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'openstack/common/authutils.py')
-rw-r--r--openstack/common/authutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/authutils.py b/openstack/common/authutils.py
index 4614238..130f175 100644
--- a/openstack/common/authutils.py
+++ b/openstack/common/authutils.py
@@ -37,7 +37,7 @@ def auth_str_equal(provided, known):
result = 0
p_len = len(provided)
k_len = len(known)
- for i in xrange(p_len):
+ for i in range(p_len):
a = ord(provided[i]) if i < p_len else 0
b = ord(known[i]) if i < k_len else 0
result |= a ^ b