Remove unnecessary use of iteritems so that this compiles under python3

This commit is contained in:
Toshio Kuratomi 2017-01-04 17:39:34 -08:00
parent ee1dee08b6
commit 8469ea93d9

View file

@ -217,7 +217,7 @@ class pulp_server(object):
repo_config = self.get_repo_config_by_id(repo_id)
for distributor in repo_config['distributors']:
for key, value in kwargs.iteritems():
for key, value in kwargs.items():
if not distributor['config'][key] == value:
return False
@ -227,7 +227,7 @@ class pulp_server(object):
repo_config = self.get_repo_config_by_id(repo_id)
for importer in repo_config['importers']:
for key, value in kwargs.iteritems():
for key, value in kwargs.items():
if value is not None:
if key not in importer['config'].keys():
return False
@ -411,7 +411,7 @@ class pulp_server(object):
data = dict()
data['distributor_config'] = dict()
for key, value in kwargs.iteritems():
for key, value in kwargs.items():
data['distributor_config'][key] = value
response, info = fetch_url(
@ -432,7 +432,7 @@ class pulp_server(object):
data = dict()
importer_config = dict()
for key, value in kwargs.iteritems():
for key, value in kwargs.items():
if value is not None:
importer_config[key] = value