diff options
author | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-12 16:28:57 +0200 |
---|---|---|
committer | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-12 16:55:07 +0200 |
commit | 98afd76692e04277fd7a81db7da9480a31cfe18c (patch) | |
tree | 4b502329cc760129581d7abdcc00eaf284b0b7a7 /tests | |
parent | 613f8bc0e786bca030e47d586b6835ed76579a50 (diff) | |
download | cryptography-98afd76692e04277fd7a81db7da9480a31cfe18c.tar.gz cryptography-98afd76692e04277fd7a81db7da9480a31cfe18c.tar.bz2 cryptography-98afd76692e04277fd7a81db7da9480a31cfe18c.zip |
Use iteritems from the six module for Python 3 compatibility
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 52231539..11bb919a 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -16,6 +16,8 @@ from __future__ import absolute_import, division, print_function import os import textwrap +import six + import pretend import pytest @@ -1888,7 +1890,7 @@ e76422070edb71db44ff568280fdb1709f8fc3feab39f1f824adaeb2a29808815\ expected = [] for dictionary in expected_vectors: new_dict = {} - for k, v in dictionary.iteritems(): + for k, v in six.iteritems(dictionary): v = v.strip() v = v.replace(" ", "") v = int(v, 16) |