Use six.iteritems() rather than dict.iteritems()

This is compatible with both Python 2 and 3.

Change-Id: I6fe3e9bf9ece699badbdb9933118af90642a91e9
This commit is contained in:
Cyril Roelandt 2014-02-11 02:22:20 +01:00
parent 632363328b
commit 3a5abf743c

@ -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):