summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-01-19 18:10:24 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-03-17 18:06:44 (GMT)
commit46113c03dd60da5f1a9dd7e48f4b046ff84d2893 (patch)
treee08809276a22fa7355a87bd8ba444fabb8ec57f7
parent27af09b510876cc5db46da3aa74f5eaadc6bc0a3 (diff)
downloadwelco-46113c03dd60da5f1a9dd7e48f4b046ff84d2893.zip
welco-46113c03dd60da5f1a9dd7e48f4b046ff84d2893.tar.gz
welco-46113c03dd60da5f1a9dd7e48f4b046ff84d2893.tar.bz2
python3: replace iteritems (#39092)
-rw-r--r--welco/sources/mail/maarch.py2
-rw-r--r--welco/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/welco/sources/mail/maarch.py b/welco/sources/mail/maarch.py
index 3899500..ce1f724 100644
--- a/welco/sources/mail/maarch.py
+++ b/welco/sources/mail/maarch.py
@@ -87,7 +87,7 @@ class MaarchCourrier(object):
excluded_keys = ['content', 'format', 'status', 'maarch_courrier', 'pk']
data = {key: self.__dict__[key] for key in self.__dict__ if key not in excluded_keys}
if data:
- for key, value in data.iteritems():
+ for key, value in data.items():
if isinstance(value, basestring):
d.append({'column': key, 'value': value, 'type': 'string'})
elif isinstance(value, int):
diff --git a/welco/utils.py b/welco/utils.py
index ebedf7e..22629b0 100644
--- a/welco/utils.py
+++ b/welco/utils.py
@@ -78,7 +78,7 @@ def get_wcs_json(wcs_url, path, wcs_site, params={}):
def get_wcs_options(url, condition=None, params={}):
categories = {}
- for wcs_key, wcs_site in get_wcs_services().iteritems():
+ for wcs_key, wcs_site in get_wcs_services().items():
site_title = wcs_site.get('title')
response_json = get_wcs_json(wcs_site.get('url'), url, wcs_site, params)
if type(response_json) is dict: