Commit 6ff4bf51 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[foozzie] Fix Python3 incompatibility with iteritems

NOTRY=true
TBR=tmrts@chromium.org

Bug: chromium:1065624
Change-Id: I6115b867ac28650823bc2efa5305a5ea6f15b5a8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2124325Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66899}
parent a3d2f7a4
......@@ -291,13 +291,13 @@ class V8Suppression(Suppression):
# already minimized test cases might have dropped the delimiter line.
content = testcase
for key in ['', self.arch1, self.arch2, self.config1, self.config2]:
for bug, exp in IGNORE_TEST_CASES.get(key, {}).iteritems():
for bug, exp in IGNORE_TEST_CASES.get(key, {}).items():
if exp.search(content):
return bug
return None
def ignore_by_metadata(self, metadata):
for bug, sources in self.ignore_sources.iteritems():
for bug, sources in self.ignore_sources.items():
for source in sources:
if source in metadata['sources']:
return bug
......@@ -311,7 +311,7 @@ class V8Suppression(Suppression):
def ignore_by_output(self, output, arch, config):
def check(mapping):
for bug, exp in mapping.iteritems():
for bug, exp in mapping.items():
if exp.search(output):
return bug
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment