llvm.org GIT mirror llvm / 9fb7c2f
[utils] Use operator "in" instead of bound function "has_key" has_key has been removed in Python 3. The in comparison operator can be used instead. Differential Revision: https://reviews.llvm.org/D55310 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348576 91177308-0d34-0410-b5e6-96231b3b80d8 Roger Ferrer Ibanez 1 year, 11 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
103103 body = m.group('body')
104104 scrubbed_body = do_scrub(body, scrubber, scrubber_args, extra = False)
105105 scrubbed_extra = do_scrub(body, scrubber, scrubber_args, extra = True)
106 if m.groupdict().has_key('analysis'):
106 if 'analysis' in m.groupdict():
107107 analysis = m.group('analysis')
108108 if analysis.lower() != 'cost model analysis':
109109 print('WARNING: Unsupported analysis mode: %r!' % (analysis,), file=sys.stderr)