Skip to contentSkip to conversation

drop "from __future__ import print_function"

PATCH In review Paolo Bonzini 4 participants 6 messages Feb 4, 2020 – Feb 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drop "from __future__ import print_function"

This is only needed for Python 2, which we do not support anymore.

Based-on: <[email protected]>

Cc Philippe Mathieu-Daudé <[email protected]>
---
 scripts/analyse-9p-simpletrace.py        | 1 -
 scripts/analyse-locks-simpletrace.py     | 1 -
 scripts/device-crash-test                | 1 -
 scripts/dump-guest-memory.py             | 1 -
 scripts/kvm/kvm_flightrecorder           | 1 -
 scripts/kvm/vmxcap                       | 1 -
 scripts/minikconf.py                     | 1 -
 scripts/modules/module_block.py          | 1 -
 scripts/qapi-gen.py                      | 1 -
 scripts/qapi/doc.py                      | 1 -
 scripts/qmp/qemu-ga-client               | 1 -
 scripts/qmp/qmp                          | 1 -
 scripts/qmp/qmp-shell                    | 1 -
 scripts/qmp/qom-get                      | 1 -
 scripts/qmp/qom-list                     | 1 -
 scripts/qmp/qom-set                      | 1 -
 scripts/qmp/qom-tree                     | 1 -
 scripts/replay-dump.py                   | 1 -
 scripts/signrom.py                       | 1 -
 scripts/simpletrace.py                   | 1 -
 scripts/vmstate-static-checker.py        | 1 -
 tests/docker/travis.py                   | 1 -
 tests/guest-debug/test-gdbstub.py        | 1 -
 tests/migration/guestperf/engine.py      | 1 -
 tests/migration/guestperf/plot.py        | 1 -
 tests/migration/guestperf/shell.py       | 1 -
 tests/qapi-schema/test-qapi.py           | 1 -
 tests/qemu-iotests/149                   | 1 -
 tests/qemu-iotests/165                   | 1 -
 tests/qemu-iotests/iotests.py            | 1 -
 tests/qemu-iotests/nbd-fault-injector.py | 1 -
 tests/qemu-iotests/qcow2.py              | 1 -
 tests/qemu-iotests/qed.py                | 1 -
 tests/vm/basevm.py                       | 1 -
 34 files changed, 34 deletions(-)
scripts/analyse-9p-simpletrace.py +0 -1
index f20050fddd..7dfcb6ba2f 100755
@@ -3,7 +3,6 @@
 # Usage: ./analyse-9p-simpletrace <trace-events> <trace-pid>
 #
 # Author: Harsh Prateek Bora
-from __future__ import print_function
 import os
 import simpletrace
 
scripts/analyse-locks-simpletrace.py +0 -1
index 9c263d6e79..63c11f4fce 100755
@@ -6,7 +6,6 @@
 # Author: Alex Bennée <[email protected]>
 #
 
-from __future__ import print_function
 import simpletrace
 import argparse
 import numpy as np
scripts/device-crash-test +0 -1
index 25ee968b66..305d0427af 100755
@@ -23,7 +23,6 @@
 Run QEMU with all combinations of -machine and -device types,
 check for crashes and unexpected errors.
 """
-from __future__ import print_function
 
 import os
 import sys
scripts/dump-guest-memory.py +0 -1
index 9371e45813..4177261d33 100644
@@ -12,7 +12,6 @@ Authors:
 This work is licensed under the terms of the GNU GPL, version 2 or later. See
 the COPYING file in the top-level directory.
 """
-from __future__ import print_function
 
 import ctypes
 import struct
scripts/kvm/kvm_flightrecorder +0 -1
index 1391a84409..78ca3af9c4 100755
@@ -32,7 +32,6 @@
 # consuming CPU cycles.  No disk I/O is performed since the ring buffer holds a
 # fixed-size in-memory trace.
 
-from __future__ import print_function
 import sys
 import os
 
scripts/kvm/vmxcap +0 -1
index 5dfeb2e03a..971ed0e721 100755
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2.  See
 # the COPYING file in the top-level directory.
 
-from __future__ import print_function
 MSR_IA32_VMX_BASIC = 0x480
 MSR_IA32_VMX_PINBASED_CTLS = 0x481
 MSR_IA32_VMX_PROCBASED_CTLS = 0x482
scripts/minikconf.py +0 -1
index 377d6228b9..2f9647d0fa 100755
@@ -11,7 +11,6 @@
 # or, at your option, any later version.  See the COPYING file in
 # the top-level directory.
 
-from __future__ import print_function
 import os
 import sys
 import re
scripts/modules/module_block.py +0 -1
index 08646af92c..f23191fac1 100644
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys
 import os
 
scripts/qapi-gen.py +0 -1
index c7b0070db2..4b03f7d53b 100755
@@ -4,7 +4,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 
 import argparse
 import re
scripts/qapi/doc.py +0 -1
index 6f1c17f71f..1787a53d91 100644
@@ -4,7 +4,6 @@
 # See the COPYING file in the top-level directory.
 """This script produces the documentation of a qapi schema in texinfo format"""
 
-from __future__ import print_function
 import re
 from qapi.gen import QAPIGenDoc, QAPISchemaVisitor
 
scripts/qmp/qemu-ga-client +0 -1
index e4568aff68..ce122984a9 100755
@@ -36,7 +36,6 @@
 # See also: https://wiki.qemu.org/Features/QAPI/GuestAgent
 #
 
-from __future__ import print_function
 import os
 import sys
 import base64
scripts/qmp/qmp +0 -1
index f85a14a627..0625fc2aba 100755
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPLv2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys, os
 from qmp import QEMUMonitorProtocol
 
scripts/qmp/qmp-shell +0 -1
index 9e122ad0c6..a01d31de1e 100755
@@ -65,7 +65,6 @@
 # which will echo back the properly formatted JSON-compliant QMP that is being
 # sent to QEMU, which is useful for debugging and documentation generation.
 
-from __future__ import print_function
 import json
 import ast
 import readline
scripts/qmp/qom-get +0 -1
index ec5275d53a..007b4cd442 100755
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/qmp/qom-list +0 -1
index 0f97440973..03bda3446b 100755
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/qmp/qom-set +0 -1
index 26ed9e3263..c37fe78b00 100755
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/qmp/qom-tree +0 -1
index 31603c681f..1c8acf61e7 100755
@@ -13,7 +13,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/replay-dump.py +0 -1
index 0cdae879b7..4cbc1e47c6 100755
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU Lesser General Public
 # License along with this library; if not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import argparse
 import struct
 from collections import namedtuple
scripts/signrom.py +0 -1
index 9be5dab1cf..43693dba56 100755
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-from __future__ import print_function
 #
 # Option ROM signing utility
 #
scripts/simpletrace.py +0 -1
index 2bc043112a..20f0026066 100755
@@ -9,7 +9,6 @@
 #
 # For help see docs/devel/tracing.txt
 
-from __future__ import print_function
 import struct
 import inspect
 from tracetool import read_events, Event
scripts/vmstate-static-checker.py +0 -1
index d44dedd9e9..539ead62b4 100755
@@ -19,7 +19,6 @@
 # You should have received a copy of the GNU General Public License along
 # with this program; if not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import argparse
 import json
 import sys
tests/docker/travis.py +0 -1
index 62fccc5ebb..37307ac366 100755
@@ -11,7 +11,6 @@
 # or (at your option) any later version. See the COPYING file in
 # the top-level directory.
 
-from __future__ import print_function
 import sys
 import yaml
 import itertools
tests/guest-debug/test-gdbstub.py +0 -1
index c7e3986a24..98a5df4d42 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # This script needs to be run on startup
 # qemu -kernel ${KERNEL} -s -S
tests/migration/guestperf/engine.py +0 -1
index 1dd04ce33b..fd63c66601 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test main engine
 #
tests/migration/guestperf/plot.py +0 -1
index aa98912a82..34cebd54ba 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test graph plotting
 #
tests/migration/guestperf/shell.py +0 -1
index 61d2abbaad..5bcc066bb9 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test command line shell integration
 #
tests/qapi-schema/test-qapi.py +0 -1
index 503fb8ad25..41232c11a3 100755
@@ -11,7 +11,6 @@
 # See the COPYING file in the top-level directory.
 #
 
-from __future__ import print_function
 
 import argparse
 import difflib
tests/qemu-iotests/149 +0 -1
index 0a7b765d07..b4a21bf7b7 100755
@@ -20,7 +20,6 @@
 # Exercise the QEMU 'luks' block driver to validate interoperability
 # with the Linux dm-crypt + cryptsetup implementation
 
-from __future__ import print_function
 import subprocess
 import os
 import os.path
tests/qemu-iotests/165 +0 -1
index b60a803dae..fb56a769b4 100755
@@ -18,7 +18,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import os
 import re
 import iotests
tests/qemu-iotests/iotests.py +0 -1
index 0b62c42851..1689b25bdc 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 # Common utilities and Python wrappers for qemu-iotests
 #
 # Copyright (C) 2012 IBM Corp.
tests/qemu-iotests/nbd-fault-injector.py +0 -1
index b158dd65a2..588d62aebf 100755
@@ -43,7 +43,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys
 import socket
 import struct
tests/qemu-iotests/qcow2.py +0 -1
index 1c4fa2b09f..94a07b2f6f 100755
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-from __future__ import print_function
 import sys
 import struct
 import string
tests/qemu-iotests/qed.py +0 -1
index 36bca1de23..d6bec96069 100755
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys
 import struct
 import random
tests/vm/basevm.py +0 -1
index 30714fa1a8..4dee6647e6 100644
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 #
 
-from __future__ import print_function
 import os
 import re
 import sys
Signature · 1 line
2.21.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 47 lines · Paolo Bonzini

This is only needed for Python 2, which we do not support anymore.

Based-on: <[email protected]>

Cc Philippe Mathieu-Daudé <[email protected]>
---
  scripts/analyse-9p-simpletrace.py        | 1 -
  scripts/analyse-locks-simpletrace.py     | 1 -
  scripts/device-crash-test                | 1 -
  scripts/dump-guest-memory.py             | 1 -
  scripts/kvm/kvm_flightrecorder           | 1 -
  scripts/kvm/vmxcap                       | 1 -
  scripts/minikconf.py                     | 1 -
  scripts/modules/module_block.py          | 1 -
  scripts/qapi-gen.py                      | 1 -
  scripts/qapi/doc.py                      | 1 -
  scripts/qmp/qemu-ga-client               | 1 -
  scripts/qmp/qmp                          | 1 -
  scripts/qmp/qmp-shell                    | 1 -
  scripts/qmp/qom-get                      | 1 -
  scripts/qmp/qom-list                     | 1 -
  scripts/qmp/qom-set                      | 1 -
  scripts/qmp/qom-tree                     | 1 -
  scripts/replay-dump.py                   | 1 -
  scripts/signrom.py                       | 1 -
  scripts/simpletrace.py                   | 1 -
  scripts/vmstate-static-checker.py        | 1 -
  tests/docker/travis.py                   | 1 -
  tests/guest-debug/test-gdbstub.py        | 1 -
  tests/migration/guestperf/engine.py      | 1 -
  tests/migration/guestperf/plot.py        | 1 -
  tests/migration/guestperf/shell.py       | 1 -
  tests/qapi-schema/test-qapi.py           | 1 -
  tests/qemu-iotests/149                   | 1 -
  tests/qemu-iotests/165                   | 1 -
  tests/qemu-iotests/iotests.py            | 1 -
  tests/qemu-iotests/nbd-fault-injector.py | 1 -
  tests/qemu-iotests/qcow2.py              | 1 -
  tests/qemu-iotests/qed.py                | 1 -
  tests/vm/basevm.py                       | 1 -
  34 files changed, 34 deletions(-)
scripts/analyse-9p-simpletrace.py +0 -0
index f20050fddd..7dfcb6ba2f 100755

scripts/analyse-9p-simpletrace.py line 7

Quoted 6 lines
scripts/analyse-9p-simpletrace.py +0 -1
@@ -3,7 +3,6 @@
  # Usage: ./analyse-9p-simpletrace <trace-events> <trace-pid>
  #
  # Author: Harsh Prateek Bora
-from __future__ import print_function
  import os
  import simpletrace
#2 lore raw
Quoted 43 lines · Philippe Mathieu-Daudé
Quoted 42 lines · Paolo Bonzini

This is only needed for Python 2, which we do not support anymore.

Based-on: <[email protected]>

Cc Philippe Mathieu-Daudé <[email protected]>

---
  scripts/analyse-9p-simpletrace.py        | 1 -
  scripts/analyse-locks-simpletrace.py     | 1 -
  scripts/device-crash-test                | 1 -
  scripts/dump-guest-memory.py             | 1 -
  scripts/kvm/kvm_flightrecorder           | 1 -
  scripts/kvm/vmxcap                       | 1 -
  scripts/minikconf.py                     | 1 -
  scripts/modules/module_block.py          | 1 -
  scripts/qapi-gen.py                      | 1 -
  scripts/qapi/doc.py                      | 1 -
  scripts/qmp/qemu-ga-client               | 1 -
  scripts/qmp/qmp                          | 1 -
  scripts/qmp/qmp-shell                    | 1 -
  scripts/qmp/qom-get                      | 1 -
  scripts/qmp/qom-list                     | 1 -
  scripts/qmp/qom-set                      | 1 -
  scripts/qmp/qom-tree                     | 1 -
  scripts/replay-dump.py                   | 1 -
  scripts/signrom.py                       | 1 -
  scripts/simpletrace.py                   | 1 -
  scripts/vmstate-static-checker.py        | 1 -
  tests/docker/travis.py                   | 1 -
  tests/guest-debug/test-gdbstub.py        | 1 -
  tests/migration/guestperf/engine.py      | 1 -
  tests/migration/guestperf/plot.py        | 1 -
  tests/migration/guestperf/shell.py       | 1 -
  tests/qapi-schema/test-qapi.py           | 1 -
  tests/qemu-iotests/149                   | 1 -
  tests/qemu-iotests/165                   | 1 -
  tests/qemu-iotests/iotests.py            | 1 -
  tests/qemu-iotests/nbd-fault-injector.py | 1 -
  tests/qemu-iotests/qcow2.py              | 1 -
  tests/qemu-iotests/qed.py                | 1 -
  tests/vm/basevm.py                       | 1 -

  34 files changed, 34 deletions(-)
Quoted 15 lines
Quoted 10 lines
scripts/analyse-9p-simpletrace.py +0 -1
index f20050fddd..7dfcb6ba2f 100755
@@ -3,7 +3,6 @@
   # Usage: ./analyse-9p-simpletrace <trace-events> <trace-pid>
   #
   # Author: Harsh Prateek Bora
-from __future__ import print_function
Quoted 2 lines

  import os
  import simpletrace

Are you queueing this too?

#3 lore raw
Quoted 60 lines · Paolo Bonzini
Quoted 43 lines · Philippe Mathieu-Daudé
Quoted 42 lines · Paolo Bonzini

This is only needed for Python 2, which we do not support anymore.

Based-on: <[email protected]>

Cc Philippe Mathieu-Daudé <[email protected]>
---
   scripts/analyse-9p-simpletrace.py        | 1 -
   scripts/analyse-locks-simpletrace.py     | 1 -
   scripts/device-crash-test                | 1 -
   scripts/dump-guest-memory.py             | 1 -
   scripts/kvm/kvm_flightrecorder           | 1 -
   scripts/kvm/vmxcap                       | 1 -
   scripts/minikconf.py                     | 1 -
   scripts/modules/module_block.py          | 1 -
   scripts/qapi-gen.py                      | 1 -
   scripts/qapi/doc.py                      | 1 -
   scripts/qmp/qemu-ga-client               | 1 -
   scripts/qmp/qmp                          | 1 -
   scripts/qmp/qmp-shell                    | 1 -
   scripts/qmp/qom-get                      | 1 -
   scripts/qmp/qom-list                     | 1 -
   scripts/qmp/qom-set                      | 1 -
   scripts/qmp/qom-tree                     | 1 -
   scripts/replay-dump.py                   | 1 -
   scripts/signrom.py                       | 1 -
   scripts/simpletrace.py                   | 1 -
   scripts/vmstate-static-checker.py        | 1 -
   tests/docker/travis.py                   | 1 -
   tests/guest-debug/test-gdbstub.py        | 1 -
   tests/migration/guestperf/engine.py      | 1 -
   tests/migration/guestperf/plot.py        | 1 -
   tests/migration/guestperf/shell.py       | 1 -
   tests/qapi-schema/test-qapi.py           | 1 -
   tests/qemu-iotests/149                   | 1 -
   tests/qemu-iotests/165                   | 1 -
   tests/qemu-iotests/iotests.py            | 1 -
   tests/qemu-iotests/nbd-fault-injector.py | 1 -
   tests/qemu-iotests/qcow2.py              | 1 -
   tests/qemu-iotests/qed.py                | 1 -
   tests/vm/basevm.py                       | 1 -
   34 files changed, 34 deletions(-)
Quoted 15 lines

scripts/analyse-9p-simpletrace.py line 7

Quoted 12 lines
scripts/analyse-9p-simpletrace.py +0 -1
index f20050fddd..7dfcb6ba2f 100755
@@ -3,7 +3,6 @@
   # Usage: ./analyse-9p-simpletrace <trace-events> <trace-pid>
   #
   # Author: Harsh Prateek Bora
-from __future__ import print_function
   import os
   import simpletrace
Quoted 1 line

Are you queueing this too?

Yes, patch applied to my python-next tree:
https://gitlab.com/philmd/qemu/commits/python-next

Acked-by on v1 1/1
#4 lore raw
In reply to Paolo Bonzini
Quoted 5 lines · Paolo Bonzini

This is only needed for Python 2, which we do not support anymore.

Based-on: <[email protected]>

Cc Philippe Mathieu-Daudé <[email protected]>

testing bits

Quoted 428 lines
---
 scripts/analyse-9p-simpletrace.py        | 1 -
 scripts/analyse-locks-simpletrace.py     | 1 -
 scripts/device-crash-test                | 1 -
 scripts/dump-guest-memory.py             | 1 -
 scripts/kvm/kvm_flightrecorder           | 1 -
 scripts/kvm/vmxcap                       | 1 -
 scripts/minikconf.py                     | 1 -
 scripts/modules/module_block.py          | 1 -
 scripts/qapi-gen.py                      | 1 -
 scripts/qapi/doc.py                      | 1 -
 scripts/qmp/qemu-ga-client               | 1 -
 scripts/qmp/qmp                          | 1 -
 scripts/qmp/qmp-shell                    | 1 -
 scripts/qmp/qom-get                      | 1 -
 scripts/qmp/qom-list                     | 1 -
 scripts/qmp/qom-set                      | 1 -
 scripts/qmp/qom-tree                     | 1 -
 scripts/replay-dump.py                   | 1 -
 scripts/signrom.py                       | 1 -
 scripts/simpletrace.py                   | 1 -
 scripts/vmstate-static-checker.py        | 1 -
 tests/docker/travis.py                   | 1 -
 tests/guest-debug/test-gdbstub.py        | 1 -
 tests/migration/guestperf/engine.py      | 1 -
 tests/migration/guestperf/plot.py        | 1 -
 tests/migration/guestperf/shell.py       | 1 -
 tests/qapi-schema/test-qapi.py           | 1 -
 tests/qemu-iotests/149                   | 1 -
 tests/qemu-iotests/165                   | 1 -
 tests/qemu-iotests/iotests.py            | 1 -
 tests/qemu-iotests/nbd-fault-injector.py | 1 -
 tests/qemu-iotests/qcow2.py              | 1 -
 tests/qemu-iotests/qed.py                | 1 -
 tests/vm/basevm.py                       | 1 -
 34 files changed, 34 deletions(-)
scripts/analyse-9p-simpletrace.py +0 -1
index f20050fddd..7dfcb6ba2f 100755
@@ -3,7 +3,6 @@
 # Usage: ./analyse-9p-simpletrace <trace-events> <trace-pid>
 #
 # Author: Harsh Prateek Bora
-from __future__ import print_function
 import os
 import simpletrace
 
scripts/analyse-locks-simpletrace.py +0 -1
index 9c263d6e79..63c11f4fce 100755
@@ -6,7 +6,6 @@
 # Author: Alex Bennée <[email protected]>
 #
 
-from __future__ import print_function
 import simpletrace
 import argparse
 import numpy as np
scripts/device-crash-test +0 -1
index 25ee968b66..305d0427af 100755
@@ -23,7 +23,6 @@
 Run QEMU with all combinations of -machine and -device types,
 check for crashes and unexpected errors.
 """
-from __future__ import print_function
 
 import os
 import sys
scripts/dump-guest-memory.py +0 -1
index 9371e45813..4177261d33 100644
@@ -12,7 +12,6 @@ Authors:
 This work is licensed under the terms of the GNU GPL, version 2 or later. See
 the COPYING file in the top-level directory.
 """
-from __future__ import print_function
 
 import ctypes
 import struct
scripts/kvm/kvm_flightrecorder +0 -1
index 1391a84409..78ca3af9c4 100755
@@ -32,7 +32,6 @@
 # consuming CPU cycles.  No disk I/O is performed since the ring buffer holds a
 # fixed-size in-memory trace.
 
-from __future__ import print_function
 import sys
 import os
 
scripts/kvm/vmxcap +0 -1
index 5dfeb2e03a..971ed0e721 100755
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2.  See
 # the COPYING file in the top-level directory.
 
-from __future__ import print_function
 MSR_IA32_VMX_BASIC = 0x480
 MSR_IA32_VMX_PINBASED_CTLS = 0x481
 MSR_IA32_VMX_PROCBASED_CTLS = 0x482
scripts/minikconf.py +0 -1
index 377d6228b9..2f9647d0fa 100755
@@ -11,7 +11,6 @@
 # or, at your option, any later version.  See the COPYING file in
 # the top-level directory.
 
-from __future__ import print_function
 import os
 import sys
 import re
scripts/modules/module_block.py +0 -1
index 08646af92c..f23191fac1 100644
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys
 import os
 
scripts/qapi-gen.py +0 -1
index c7b0070db2..4b03f7d53b 100755
@@ -4,7 +4,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 
 import argparse
 import re
scripts/qapi/doc.py +0 -1
index 6f1c17f71f..1787a53d91 100644
@@ -4,7 +4,6 @@
 # See the COPYING file in the top-level directory.
 """This script produces the documentation of a qapi schema in texinfo format"""
 
-from __future__ import print_function
 import re
 from qapi.gen import QAPIGenDoc, QAPISchemaVisitor
 
scripts/qmp/qemu-ga-client +0 -1
index e4568aff68..ce122984a9 100755
@@ -36,7 +36,6 @@
 # See also: https://wiki.qemu.org/Features/QAPI/GuestAgent
 #
 
-from __future__ import print_function
 import os
 import sys
 import base64
scripts/qmp/qmp +0 -1
index f85a14a627..0625fc2aba 100755
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPLv2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys, os
 from qmp import QEMUMonitorProtocol
 
scripts/qmp/qmp-shell +0 -1
index 9e122ad0c6..a01d31de1e 100755
@@ -65,7 +65,6 @@
 # which will echo back the properly formatted JSON-compliant QMP that is being
 # sent to QEMU, which is useful for debugging and documentation generation.
 
-from __future__ import print_function
 import json
 import ast
 import readline
scripts/qmp/qom-get +0 -1
index ec5275d53a..007b4cd442 100755
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/qmp/qom-list +0 -1
index 0f97440973..03bda3446b 100755
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/qmp/qom-set +0 -1
index 26ed9e3263..c37fe78b00 100755
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/qmp/qom-tree +0 -1
index 31603c681f..1c8acf61e7 100755
@@ -13,7 +13,6 @@
 # the COPYING file in the top-level directory.
 ##
 
-from __future__ import print_function
 import sys
 import os
 from qmp import QEMUMonitorProtocol
scripts/replay-dump.py +0 -1
index 0cdae879b7..4cbc1e47c6 100755
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU Lesser General Public
 # License along with this library; if not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import argparse
 import struct
 from collections import namedtuple
scripts/signrom.py +0 -1
index 9be5dab1cf..43693dba56 100755
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-from __future__ import print_function
 #
 # Option ROM signing utility
 #
scripts/simpletrace.py +0 -1
index 2bc043112a..20f0026066 100755
@@ -9,7 +9,6 @@
 #
 # For help see docs/devel/tracing.txt
 
-from __future__ import print_function
 import struct
 import inspect
 from tracetool import read_events, Event
scripts/vmstate-static-checker.py +0 -1
index d44dedd9e9..539ead62b4 100755
@@ -19,7 +19,6 @@
 # You should have received a copy of the GNU General Public License along
 # with this program; if not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import argparse
 import json
 import sys
tests/docker/travis.py +0 -1
index 62fccc5ebb..37307ac366 100755
@@ -11,7 +11,6 @@
 # or (at your option) any later version. See the COPYING file in
 # the top-level directory.
 
-from __future__ import print_function
 import sys
 import yaml
 import itertools
tests/guest-debug/test-gdbstub.py +0 -1
index c7e3986a24..98a5df4d42 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # This script needs to be run on startup
 # qemu -kernel ${KERNEL} -s -S
tests/migration/guestperf/engine.py +0 -1
index 1dd04ce33b..fd63c66601 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test main engine
 #
tests/migration/guestperf/plot.py +0 -1
index aa98912a82..34cebd54ba 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test graph plotting
 #
tests/migration/guestperf/shell.py +0 -1
index 61d2abbaad..5bcc066bb9 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test command line shell integration
 #
tests/qapi-schema/test-qapi.py +0 -1
index 503fb8ad25..41232c11a3 100755
@@ -11,7 +11,6 @@
 # See the COPYING file in the top-level directory.
 #
 
-from __future__ import print_function
 
 import argparse
 import difflib
tests/qemu-iotests/149 +0 -1
index 0a7b765d07..b4a21bf7b7 100755
@@ -20,7 +20,6 @@
 # Exercise the QEMU 'luks' block driver to validate interoperability
 # with the Linux dm-crypt + cryptsetup implementation
 
-from __future__ import print_function
 import subprocess
 import os
 import os.path
tests/qemu-iotests/165 +0 -1
index b60a803dae..fb56a769b4 100755
@@ -18,7 +18,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import os
 import re
 import iotests
tests/qemu-iotests/iotests.py +0 -1
index 0b62c42851..1689b25bdc 100644
@@ -1,4 +1,3 @@
-from __future__ import print_function
 # Common utilities and Python wrappers for qemu-iotests
 #
 # Copyright (C) 2012 IBM Corp.
tests/qemu-iotests/nbd-fault-injector.py +0 -1
index b158dd65a2..588d62aebf 100755
@@ -43,7 +43,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys
 import socket
 import struct
tests/qemu-iotests/qcow2.py +0 -1
index 1c4fa2b09f..94a07b2f6f 100755
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-from __future__ import print_function
 import sys
 import struct
 import string
tests/qemu-iotests/qed.py +0 -1
index 36bca1de23..d6bec96069 100755
@@ -10,7 +10,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or later.
 # See the COPYING file in the top-level directory.
 
-from __future__ import print_function
 import sys
 import struct
 import random
tests/vm/basevm.py +0 -1
index 30714fa1a8..4dee6647e6 100644
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 #
 
-from __future__ import print_function
 import os
 import re
 import sys
Signature · 1 line
Alex Bennée