From 7cb17cc296acd0d3f1ac3676a7b2b64f6bd7a661 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 14 Aug 2018 09:39:00 -0500 Subject: [PATCH] Fix py3 issues with aclissues script This code was using the remove iteritems() call. Updated to just call items() instead. Change-Id: I29bff1a6a4e9be8e11d5411de227da0c3fa83447 Signed-off-by: Sean McGinnis --- tools/aclissues.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/aclissues.py b/tools/aclissues.py index 44bd4d1840..76b7270cbc 100755 --- a/tools/aclissues.py +++ b/tools/aclissues.py @@ -119,10 +119,10 @@ def main(args=sys.argv[1:]): governanceyaml = os.path.join(args.governance_repo, 'reference', 'projects.yaml') teams = yaml.load(open(governanceyaml)) - for tname, team in teams.iteritems(): + for tname, team in teams.items(): if is_a_team_exception(tname): continue - for dname, deliverable in team['deliverables'].iteritems(): + for dname, deliverable in team['deliverables'].items(): for repo in deliverable.get('repos'): if not is_a_repo_exception(repo): aclpath = os.path.join(aclbase, acl[repo])