Skip to content

Commit 3a5abf7

Browse files
Use six.iteritems() rather than dict.iteritems()
This is compatible with both Python 2 and 3. Change-Id: I6fe3e9bf9ece699badbdb9933118af90642a91e9
1 parent 6323633 commit 3a5abf7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎openstackclient/tests/fakes.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# under the License.
1414
#
1515

16+
import six
1617
import sys
1718

1819

@@ -68,7 +69,7 @@ def __init__(self, manager, info, loaded=False):
6869
self._loaded = loaded
6970

7071
def _add_details(self, info):
71-
for (k, v) in info.iteritems():
72+
for (k, v) in six.iteritems(info):
7273
setattr(self, k, v)
7374

7475
def __repr__(self):

0 commit comments

Comments
 (0)