diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-31 11:36:01 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-31 11:36:01 -0700 |
commit | 139cf462ca0126d6ed161a4b32e6b6c889c77318 (patch) | |
tree | 8a7c0a82d11028d6c65e9471a524cf1688a019e6 | |
parent | 5ac6524f790713090754572fb775405f64a87df2 (diff) | |
download | cryptography-139cf462ca0126d6ed161a4b32e6b6c889c77318.tar.gz cryptography-139cf462ca0126d6ed161a4b32e6b6c889c77318.tar.bz2 cryptography-139cf462ca0126d6ed161a4b32e6b6c889c77318.zip |
py3k fix
-rw-r--r-- | cryptography/fernet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/fernet.py b/cryptography/fernet.py index d6a94424..064aceec 100644 --- a/cryptography/fernet.py +++ b/cryptography/fernet.py @@ -71,6 +71,6 @@ def constant_time_compare(a, b): if len(a) != len(b): return False result = 0 - for i in xrange(len(a)): + for i in range(len(a)): result |= six.indexbytes(a, i) ^ six.indexbytes(b, i) return result == 0 |