python: Better check for keys in dicts
authorMathieu Bridon <bochecha@daitauha.fr>
Thu, 5 Jul 2018 13:17:35 +0000 (15:17 +0200)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 24 Jul 2018 18:07:04 +0000 (11:07 -0700)
commit1d209275c29886bac218d77135f61ae52464a1be
tree4c6799c2e035b47743303eed6b4e8b75e737b18a
parent9b3474249513267bb4e50d450c70e688bffbc082
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 <bochecha@daitauha.fr>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mapi/glapi/gen/glX_XML.py
src/mapi/glapi/gen/glX_proto_send.py
src/mapi/glapi/gen/glX_proto_size.py
src/mapi/glapi/gen/gl_XML.py
src/mapi/glapi/gen/gl_procs.py
src/mapi/mapi_abi.py
src/util/xmlpool/gen_xmlpool.py