Replacing six.iteritems() with .items()
We can use dict.items instead, as it will return iterators in PY3* as well. And dict.items/keys will more readable. Change-Id: I76683ba60193b725a668716366f020391f61ac4c
This commit is contained in:
parent
d9c5b30d42
commit
7f5c3e035e
|
@ -22,7 +22,6 @@ import textwrap
|
|||
import uuid
|
||||
|
||||
import prettytable
|
||||
import six
|
||||
import yaml
|
||||
|
||||
from monascaclient import exc
|
||||
|
@ -291,6 +290,6 @@ def set_env_variables(kwargs):
|
|||
'domain_name': 'OS_DOMAIN_NAME',
|
||||
'region_name': 'OS_REGION_NAME'
|
||||
}
|
||||
for k, v in six.iteritems(environment_variables):
|
||||
for k, v in environment_variables.items():
|
||||
if k not in kwargs:
|
||||
kwargs[k] = env(v)
|
||||
|
|
Loading…
Reference in New Issue