summaryrefslogtreecommitdiffstats
path: root/openstack/common/authutils.py
diff options
context:
space:
mode:
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