[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [RFC 01/10] python: futurize -f libfuturize.fixes.fix_p
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [RFC 01/10] python: futurize -f libfuturize.fixes.fix_print_with_import |
Date: |
Mon, 14 May 2018 15:20:32 +0100 |
User-agent: |
Mutt/1.9.5 (2018-04-13) |
On Fri, May 11, 2018 at 07:20:43PM -0300, Eduardo Habkost wrote:
> Change all Python code to use print as a function.
>
> 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 libfuturize.fixes.fix_print_with_import $py
>
> Signed-off-by: Eduardo Habkost <address@hidden>
> ---
> scripts/analyse-9p-simpletrace.py | 89
> ++++++++++++++++----------------
> scripts/analyse-locks-simpletrace.py | 1 +
> scripts/analyze-migration.py | 11 ++--
> scripts/dump-guest-memory.py | 1 +
> scripts/replay-dump.py | 21 ++++----
> scripts/signrom.py | 1 +
> scripts/simpletrace.py | 3 +-
> scripts/vmstate-static-checker.py | 85 +++++++++++++++---------------
> scripts/device-crash-test | 3 +-
> scripts/kvm/kvm_flightrecorder | 21 ++++----
> scripts/kvm/vmxcap | 1 +
> scripts/qmp/qemu-ga-client | 1 +
> scripts/qmp/qmp | 17 +++---
> scripts/qmp/qmp-shell | 35 +++++++------
> scripts/qmp/qom-get | 7 +--
> scripts/qmp/qom-list | 11 ++--
> scripts/qmp/qom-set | 5 +-
> scripts/qmp/qom-tree | 11 ++--
> tests/docker/docker.py | 11 ++--
> tests/docker/travis.py | 15 +++---
> tests/guest-debug/test-gdbstub.py | 1 +
> tests/image-fuzzer/runner.py | 38 ++++++--------
> tests/migration/guestperf/engine.py | 29 ++++++-----
> tests/migration/guestperf/plot.py | 17 +++---
> tests/migration/guestperf/shell.py | 19 +++----
> tests/qemu-iotests/149 | 3 +-
> tests/qemu-iotests/165 | 3 +-
> tests/qemu-iotests/iotests.py | 5 +-
> tests/qemu-iotests/nbd-fault-injector.py | 7 +--
> tests/qemu-iotests/qcow2.py | 39 +++++++-------
> tests/qemu-iotests/qed.py | 17 +++---
> tests/vm/basevm.py | 3 +-
> 32 files changed, 278 insertions(+), 253 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- [Qemu-block] [RFC 00/10] [TESTING NEEDED] python: futurize --stage1 (Python 3 compatibility), Eduardo Habkost, 2018/05/11
- [Qemu-block] [RFC 02/10] python: futurize -f libfuturize.fixes.fix_absolute_import, Eduardo Habkost, 2018/05/11
- [Qemu-block] [RFC 01/10] python: futurize -f libfuturize.fixes.fix_print_with_import, Eduardo Habkost, 2018/05/11
- Re: [Qemu-block] [RFC 01/10] python: futurize -f libfuturize.fixes.fix_print_with_import,
Stefan Hajnoczi <=
- [Qemu-block] [RFC 03/10] python: futurize -f libfuturize.fixes.fix_next_call, Eduardo Habkost, 2018/05/11
- [Qemu-block] [RFC 04/10] python: futurize -f lib2to3.fixes.fix_has_key, Eduardo Habkost, 2018/05/11
- [Qemu-block] [RFC 05/10] python: futurize -f lib2to3.fixes.fix_standarderror, Eduardo Habkost, 2018/05/11
- [Qemu-block] [RFC 06/10] python: futurize -f lib2to3.fixes.fix_reduce, Eduardo Habkost, 2018/05/11
- [Qemu-block] [RFC 07/10] python: futurize -f lib2to3.fixes.fix_tuple_params, Eduardo Habkost, 2018/05/11