Use six.iteritems() rather than dict.iteritems()
This is compatible with both Python 2 and 3. Change-Id: I6fe3e9bf9ece699badbdb9933118af90642a91e9
This commit is contained in:
		| @@ -13,6 +13,7 @@ | |||||||
| #   under the License. | #   under the License. | ||||||
| # | # | ||||||
|  |  | ||||||
|  | import six | ||||||
| import sys | import sys | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -68,7 +69,7 @@ class FakeResource(object): | |||||||
|         self._loaded = loaded |         self._loaded = loaded | ||||||
|  |  | ||||||
|     def _add_details(self, info): |     def _add_details(self, info): | ||||||
|         for (k, v) in info.iteritems(): |         for (k, v) in six.iteritems(info): | ||||||
|             setattr(self, k, v) |             setattr(self, k, v) | ||||||
|  |  | ||||||
|     def __repr__(self): |     def __repr__(self): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Cyril Roelandt
					Cyril Roelandt