qemu/scripts/qmp
Eduardo Habkost d7a4228ebb python: futurize -f lib2to3.fixes.fix_has_key
Change "dict.has_key(key)" to "key in dict"

This is necessary for Python 3 compatibility.

Done using:

  $ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
    sort -u | grep -v README.sh4)
  $ futurize -w -f lib2to3.fixes.fix_has_key $py

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20180608122952.2009-5-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2018-06-08 14:39:24 -03:00
..
__init__.py scripts: add __init__.py file to scripts/qmp/ 2016-07-22 13:23:13 +05:30
qemu-ga-client python: futurize -f libfuturize.fixes.fix_absolute_import 2018-06-08 14:39:24 -03:00
qmp python: futurize -f lib2to3.fixes.fix_has_key 2018-06-08 14:39:24 -03:00
qmp-shell python: futurize -f lib2to3.fixes.fix_has_key 2018-06-08 14:39:24 -03:00
qmp.py qmp.py: Encode json data before sending 2018-03-12 19:10:16 -03:00
qom-fuse python: futurize -f lib2to3.fixes.fix_has_key 2018-06-08 14:39:24 -03:00
qom-get python: futurize -f lib2to3.fixes.fix_has_key 2018-06-08 14:39:24 -03:00
qom-list python: futurize -f lib2to3.fixes.fix_has_key 2018-06-08 14:39:24 -03:00
qom-set python: futurize -f lib2to3.fixes.fix_has_key 2018-06-08 14:39:24 -03:00
qom-tree python: futurize -f lib2to3.fixes.fix_has_key 2018-06-08 14:39:24 -03:00