summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/__init__.py
diff options
context:
space:
mode:
authorEduardo Habkost2018-06-08 14:29:46 +0200
committerEduardo Habkost2018-06-08 19:39:24 +0200
commitd7a4228ebb0150e4c97a19077f3fac81d843e2c3 (patch)
tree020374f95228a5fbde5ed53ed03482b285d392e9 /scripts/qapi/__init__.py
parentpython: futurize -f libfuturize.fixes.fix_next_call (diff)
downloadqemu-d7a4228ebb0150e4c97a19077f3fac81d843e2c3.tar.gz
qemu-d7a4228ebb0150e4c97a19077f3fac81d843e2c3.tar.xz
qemu-d7a4228ebb0150e4c97a19077f3fac81d843e2c3.zip
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>
Diffstat (limited to 'scripts/qapi/__init__.py')
0 files changed, 0 insertions, 0 deletions