[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/10] image-fuzzer: Run using python3
From: |
Eduardo Habkost |
Subject: |
[PATCH 09/10] image-fuzzer: Run using python3 |
Date: |
Wed, 16 Oct 2019 16:24:29 -0300 |
image-fuzzer is now supposed to be ready to run using Python 3.
Remove the __future__ imports and change the interpreter line to
"#!/usr/bin/env python3".
Signed-off-by: Eduardo Habkost <address@hidden>
---
tests/image-fuzzer/qcow2/__init__.py | 1 -
tests/image-fuzzer/qcow2/layout.py | 1 -
tests/image-fuzzer/runner.py | 3 +--
3 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/tests/image-fuzzer/qcow2/__init__.py
b/tests/image-fuzzer/qcow2/__init__.py
index 09ef59821b..ed3af5da86 100644
--- a/tests/image-fuzzer/qcow2/__init__.py
+++ b/tests/image-fuzzer/qcow2/__init__.py
@@ -1,2 +1 @@
-from __future__ import absolute_import
from .layout import create_image
diff --git a/tests/image-fuzzer/qcow2/layout.py
b/tests/image-fuzzer/qcow2/layout.py
index 01bff4d05e..57ebe86e9a 100644
--- a/tests/image-fuzzer/qcow2/layout.py
+++ b/tests/image-fuzzer/qcow2/layout.py
@@ -16,7 +16,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from __future__ import absolute_import
import random
import struct
from . import fuzz
diff --git a/tests/image-fuzzer/runner.py b/tests/image-fuzzer/runner.py
index 94cab5bd93..0793234815 100755
--- a/tests/image-fuzzer/runner.py
+++ b/tests/image-fuzzer/runner.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Tool for running fuzz tests
#
@@ -18,7 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from __future__ import print_function
import sys
import os
import signal
--
2.21.0
- [PATCH 01/10] image-fuzzer: Open image files in binary mode, (continued)
- [PATCH 01/10] image-fuzzer: Open image files in binary mode, Eduardo Habkost, 2019/10/16
- [PATCH 03/10] image-fuzzer: Explicitly use integer division operator, Eduardo Habkost, 2019/10/16
- [PATCH 04/10] image-fuzzer: Use io.StringIO, Eduardo Habkost, 2019/10/16
- [PATCH 05/10] image-fuzzer: Use %r for all fiels at Field.__repr__(), Eduardo Habkost, 2019/10/16
- [PATCH 06/10] image-fuzzer: Return bytes objects on string fuzzing functions, Eduardo Habkost, 2019/10/16
- [PATCH 07/10] image-fuzzer: Use bytes constant for field values, Eduardo Habkost, 2019/10/16
- [PATCH 08/10] image-fuzzer: Encode file name and file format to bytes, Eduardo Habkost, 2019/10/16
- [PATCH 09/10] image-fuzzer: Run using python3,
Eduardo Habkost <=
- [PATCH 10/10] image-fuzzer: Use errors parameter of subprocess.Popen(), Eduardo Habkost, 2019/10/16
- Re: [PATCH 00/10] image-fuzzer: Port to Python 3, John Snow, 2019/10/17