[PATCH] D55310: [utils] Use operator "in" instead of bound function "has_key"

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 7 01:52:33 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL348576: [utils] Use operator "in" instead of bound function "has_key" (authored by rogfer01, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D55310?vs=176764&id=177147#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55310/new/

https://reviews.llvm.org/D55310

Files:
  llvm/trunk/utils/UpdateTestChecks/common.py


Index: llvm/trunk/utils/UpdateTestChecks/common.py
===================================================================
--- llvm/trunk/utils/UpdateTestChecks/common.py
+++ llvm/trunk/utils/UpdateTestChecks/common.py
@@ -104,7 +104,7 @@
     body = m.group('body')
     scrubbed_body = do_scrub(body, scrubber, scrubber_args, extra = False)
     scrubbed_extra = do_scrub(body, scrubber, scrubber_args, extra = True)
-    if m.groupdict().has_key('analysis'):
+    if 'analysis' in m.groupdict():
       analysis = m.group('analysis')
       if analysis.lower() != 'cost model analysis':
         print('WARNING: Unsupported analysis mode: %r!' % (analysis,), file=sys.stderr)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55310.177147.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181207/7d54102c/attachment-0001.bin>


More information about the llvm-commits mailing list