diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2018-06-08 09:29:44 -0300 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-06-08 14:39:24 -0300 |
commit | 068cf7a44cd4d65c05aa877dbebced295be5ce44 (patch) | |
tree | 93f47a863716ccd9a7ac71cab206645fb1f1d0b7 /tests/image-fuzzer/qcow2/layout.py | |
parent | f03868bd5653265e97b253102d77d83ea85efdea (diff) | |
download | qemu-068cf7a44cd4d65c05aa877dbebced295be5ce44.zip qemu-068cf7a44cd4d65c05aa877dbebced295be5ce44.tar.gz qemu-068cf7a44cd4d65c05aa877dbebced295be5ce44.tar.bz2 |
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>
Diffstat (limited to 'tests/image-fuzzer/qcow2/layout.py')
-rw-r--r-- | tests/image-fuzzer/qcow2/layout.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/image-fuzzer/qcow2/layout.py b/tests/image-fuzzer/qcow2/layout.py index 63e801f..675877d 100644 --- a/tests/image-fuzzer/qcow2/layout.py +++ b/tests/image-fuzzer/qcow2/layout.py @@ -16,9 +16,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # +from __future__ import absolute_import import random import struct -import fuzz +from . import fuzz from math import ceil from os import urandom from itertools import chain |