From e87926327788b08fbcd816f525395aa36616a3bb Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Tue, 24 Mar 2020 12:20:45 +0100 Subject: [PATCH] python3: replace .iteritems by .items (#40911) --- tests/test_nanterre_search.py | 2 +- zoo/zoo_nanterre/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_nanterre_search.py b/tests/test_nanterre_search.py index 48f18b9..b0a732a 100644 --- a/tests/test_nanterre_search.py +++ b/tests/test_nanterre_search.py @@ -47,7 +47,7 @@ def basic_searches(): def check(record, checks): - for key, value in checks.iteritems(): + for key, value in checks.items(): if record.get(key) != value: return False return True diff --git a/zoo/zoo_nanterre/utils.py b/zoo/zoo_nanterre/utils.py index 926ceea..dacf9f2 100644 --- a/zoo/zoo_nanterre/utils.py +++ b/zoo/zoo_nanterre/utils.py @@ -752,7 +752,7 @@ class LoadDump(object): if self.verbosity > 2: print(' Individus ignorés:') tally = {} - for iid, causes in self.ignored.iteritems(): + for iid, causes in self.ignored.items(): tally.setdefault(','.join(sorted(causes)), []).append(iid) for key in sorted(tally): print(' ', key, ':', ', '.join(map(str, tally[key])))