summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opcodes_c.py
diff options
context:
space:
mode:
authorMathieu Bridon <[email protected]>2018-07-05 15:17:35 +0200
committerDylan Baker <[email protected]>2018-07-24 11:07:04 -0700
commit1d209275c29886bac218d77135f61ae52464a1be (patch)
tree4c6799c2e035b47743303eed6b4e8b75e737b18a /src/compiler/nir/nir_opcodes_c.py
parent9b3474249513267bb4e50d450c70e688bffbc082 (diff)
python: Better check for keys in dicts
Python 3 lost the dict.has_key() method. Instead it requires using the "in" operator. This is also compatible with Python 2. Signed-off-by: Mathieu Bridon <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opcodes_c.py')
0 files changed, 0 insertions, 0 deletions