mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-05 07:40:42 -07:00
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>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| qemu-ga-client | ||
| qmp | ||
| qmp-shell | ||
| qmp.py | ||
| qom-fuse | ||
| qom-get | ||
| qom-list | ||
| qom-set | ||
| qom-tree | ||