summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-02-11 02:22:20 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-02-11 02:53:24 +0100
commit3a5abf743c66f36faf45f710720fe28546b04ea2 (patch)
tree7e5b4f270d571a84d6e39b6704f3869ea988f89e /openstackclient
parent632363328b6bcdfb562e2822cd033967adcf4b6c (diff)
downloadpython-openstackclient-3a5abf743c66f36faf45f710720fe28546b04ea2.tar.gz
Use six.iteritems() rather than dict.iteritems()
This is compatible with both Python 2 and 3. Change-Id: I6fe3e9bf9ece699badbdb9933118af90642a91e9
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/tests/fakes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/tests/fakes.py b/openstackclient/tests/fakes.py
index 01214243..4c50c0be 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):