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 <ehabk...@redhat.com> > --- > 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 <stefa...@redhat.com>
signature.asc
Description: PGP signature