From 3a5abf743c66f36faf45f710720fe28546b04ea2 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt <cyril.roelandt@enovance.com> Date: Tue, 11 Feb 2014 02:22:20 +0100 Subject: [PATCH] Use six.iteritems() rather than dict.iteritems() This is compatible with both Python 2 and 3. Change-Id: I6fe3e9bf9ece699badbdb9933118af90642a91e9 --- openstackclient/tests/fakes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstackclient/tests/fakes.py b/openstackclient/tests/fakes.py index 01214243b8..4c50c0be88 100644 --- a/openstackclient/tests/fakes.py +++ b/openstackclient/tests/fakes.py @@ -13,6 +13,7 @@ # under the License. # +import six import sys @@ -68,7 +69,7 @@ class FakeResource(object): self._loaded = loaded def _add_details(self, info): - for (k, v) in info.iteritems(): + for (k, v) in six.iteritems(info): setattr(self, k, v) def __repr__(self):