Browse Source

Merge "Replace six.iteritems() with .items()"

tags/2.8.0
Zuul 1 year ago
parent
commit
14e77312dc
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      magnumclient/tests/osc/unit/osc_fakes.py

+ 2
- 3
magnumclient/tests/osc/unit/osc_fakes.py View File

@@ -21,7 +21,6 @@ from keystoneauth1 import fixture
21 21
 import requests
22 22
 import six
23 23
 
24
-
25 24
 AUTH_TOKEN = "foobar"
26 25
 AUTH_URL = "http://0.0.0.0"
27 26
 USERNAME = "itchy"
@@ -191,7 +190,7 @@ class FakeResource(object):
191 190
         self._loaded = loaded
192 191
 
193 192
     def _add_details(self, info):
194
-        for (k, v) in six.iteritems(info):
193
+        for (k, v) in info.items():
195 194
             setattr(self, k, v)
196 195
 
197 196
     def _add_methods(self, methods):
@@ -202,7 +201,7 @@ class FakeResource(object):
202 201
         @value. When users access the attribute with (), @value will be
203 202
         returned, which looks like a function call.
204 203
         """
205
-        for (name, ret) in six.iteritems(methods):
204
+        for (name, ret) in methods.items():
206 205
             method = mock.Mock(return_value=ret)
207 206
             setattr(self, name, method)
208 207
 

Loading…
Cancel
Save