qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v2 02/10] python: futurize -f libfuturize.fixes.


From: Stefan Hajnoczi
Subject: Re: [Qemu-block] [PATCH v2 02/10] python: futurize -f libfuturize.fixes.fix_absolute_import
Date: Fri, 8 Jun 2018 14:45:27 +0100
User-agent: Mutt/1.9.5 (2018-04-13)

On Fri, Jun 08, 2018 at 09:29:44AM -0300, Eduardo Habkost wrote:
> Make implicit relative imports explicit and add "from __future__ import
> absolute_import" at the top of each relevant module.
> 
> 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_absolute_import $py
> 
> Signed-off-by: Eduardo Habkost <address@hidden>
> ---
> Changes v1 -> v2:
> * Moved "from __future__ import" line after copyright header
> ---
>  scripts/qmp/qemu-ga-client           | 3 ++-
>  scripts/qmp/qmp                      | 3 ++-
>  scripts/qmp/qmp-shell                | 3 ++-
>  scripts/qmp/qom-fuse                 | 3 ++-
>  scripts/qmp/qom-get                  | 3 ++-
>  scripts/qmp/qom-list                 | 3 ++-
>  scripts/qmp/qom-set                  | 3 ++-
>  scripts/qmp/qom-tree                 | 3 ++-
>  tests/image-fuzzer/qcow2/__init__.py | 3 ++-
>  tests/image-fuzzer/qcow2/layout.py   | 3 ++-
>  10 files changed, 20 insertions(+), 10 deletions(-)

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]