Commit 5799b981 authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

chromeos/ime/gen_input_methods.py: Convert uses of has_key

Conversion performed automatically using '2to3 -w -f has_key .'.
This is backwards compatible with Python 2.

Bug: 941669
Change-Id: I8e681b7ef8cc78b94c14b0c97101a3a0a32459bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816414
Auto-Submit: Raul Tambre <raul@tambre.ee>
Reviewed-by: default avatarYuichiro Hanada <yhanada@chromium.org>
Commit-Queue: Raul Tambre <raul@tambre.ee>
Cr-Commit-Position: refs/heads/master@{#698816}
parent 0aeb6fa8
......@@ -92,10 +92,10 @@ def CreateEngineHeader(engines):
output = []
output.append(OUTPUT_HEADER)
for engine in engines:
if engine.has_key('if'):
if 'if' in engine:
output.append(CPP_FORMAT % engine['if'])
output.append(ENGINE_FORMAT % engine)
if engine.has_key('if'):
if 'if' in engine:
output.append('#endif\n')
output.append(OUTPUT_FOOTER)
......
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