python: futurize -f libfuturize.fixes.fix_absolute_import
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 <ehabkost@redhat.com> Message-Id: <20180608122952.2009-3-ehabkost@redhat.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com>
Showing
- scripts/qmp/qemu-ga-client 2 additions, 1 deletionscripts/qmp/qemu-ga-client
- scripts/qmp/qmp 2 additions, 1 deletionscripts/qmp/qmp
- scripts/qmp/qmp-shell 2 additions, 1 deletionscripts/qmp/qmp-shell
- scripts/qmp/qom-fuse 2 additions, 1 deletionscripts/qmp/qom-fuse
- scripts/qmp/qom-get 2 additions, 1 deletionscripts/qmp/qom-get
- scripts/qmp/qom-list 2 additions, 1 deletionscripts/qmp/qom-list
- scripts/qmp/qom-set 2 additions, 1 deletionscripts/qmp/qom-set
- scripts/qmp/qom-tree 2 additions, 1 deletionscripts/qmp/qom-tree
- tests/image-fuzzer/qcow2/__init__.py 2 additions, 1 deletiontests/image-fuzzer/qcow2/__init__.py
- tests/image-fuzzer/qcow2/layout.py 2 additions, 1 deletiontests/image-fuzzer/qcow2/layout.py
Loading
Please register or sign in to comment