]> git.proxmox.com Git - mirror_qemu.git/commitdiff
drop "from __future__ import print_function"
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Feb 2020 16:06:04 +0000 (17:06 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 7 Feb 2020 14:15:16 +0000 (15:15 +0100)
This is only needed for Python 2, which we do not support anymore.

Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200204160604.19883-1-pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
34 files changed:
scripts/analyse-9p-simpletrace.py
scripts/analyse-locks-simpletrace.py
scripts/device-crash-test
scripts/dump-guest-memory.py
scripts/kvm/kvm_flightrecorder
scripts/kvm/vmxcap
scripts/minikconf.py
scripts/modules/module_block.py
scripts/qapi-gen.py
scripts/qapi/doc.py
scripts/qmp/qemu-ga-client
scripts/qmp/qmp
scripts/qmp/qmp-shell
scripts/qmp/qom-get
scripts/qmp/qom-list
scripts/qmp/qom-set
scripts/qmp/qom-tree
scripts/replay-dump.py
scripts/signrom.py
scripts/simpletrace.py
scripts/vmstate-static-checker.py
tests/docker/travis.py
tests/guest-debug/test-gdbstub.py
tests/migration/guestperf/engine.py
tests/migration/guestperf/plot.py
tests/migration/guestperf/shell.py
tests/qapi-schema/test-qapi.py
tests/qemu-iotests/149
tests/qemu-iotests/165
tests/qemu-iotests/iotests.py
tests/qemu-iotests/nbd-fault-injector.py
tests/qemu-iotests/qcow2.py
tests/qemu-iotests/qed.py
tests/vm/basevm.py

index f20050fdddc76450aadac48adb3f0814b12148f7..7dfcb6ba2f94d6cdb3e4d61ac725c294951c4b6a 100755 (executable)
@@ -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
 
index 9c263d6e7932bec8ea275e5d9ba2f2f21f9ee16f..63c11f4fce2089291a24723701d61db3398670ef 100755 (executable)
@@ -6,7 +6,6 @@
 # Author: Alex Bennée <alex.bennee@linaro.org>
 #
 
-from __future__ import print_function
 import simpletrace
 import argparse
 import numpy as np
index 25ee968b66f2ad643bd1a9458753f4d47ef8eb91..305d0427af61430dfe920c597e4d0bed36018369 100755 (executable)
@@ -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
index 9371e458130847247cefd3afcb0f74d47ab3cd4e..4177261d33d4141d7ba7081a88a66a5820927514 100644 (file)
@@ -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
index 1391a84409e42c83648ea4d8822aaaf30db11476..78ca3af9c448e032d9c7d572cb8b2aa602674d25 100755 (executable)
@@ -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
 
index 5dfeb2e03acead5d9e9ca15fdbb8ccc290d1465e..971ed0e72170ff066379025fb6bb20a159ff9f6e 100755 (executable)
@@ -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
index 377d6228b91d0254e4536cbb2c88513992ebfd65..2f9647d0faa511e5cebd9bdf74c428a989589908 100755 (executable)
@@ -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
index 08646af92c13676d18c3d800bf93e40af34d002e..f23191fac19ceaced421992c28c3f523be8471bc 100644 (file)
@@ -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
 
index c7b0070db2c6bb047273a862b291230e185cf799..4b03f7d53be73bdb43a4d92fe0333d916e4ef7b8 100755 (executable)
@@ -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
index 6f1c17f71f7b8ddd5ad59bba10972d0d5283404e..1787a53d91a36886efd5f30dc14a1894e345455c 100644 (file)
@@ -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
 
index e4568aff6899ca59ae8c54641db7c05c7c728ee8..ce122984a9cae64eaacc93d7416209b875e9b094 100755 (executable)
@@ -36,7 +36,6 @@
 # See also: https://wiki.qemu.org/Features/QAPI/GuestAgent
 #
 
-from __future__ import print_function
 import os
 import sys
 import base64
index f85a14a62742bc620a42a33e85cf8c13985f1cc4..0625fc2abacb8ce8f7879eae967b60252c4a5370 100755 (executable)
@@ -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
 
index 9e122ad0c6ea9b6f1dd90d46811a08767427a7f8..a01d31de1e549c3706a7cb57632db87a5d9db938 100755 (executable)
@@ -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
index ec5275d53ad801f01bcff0a35903b3d7980c50d8..007b4cd442ee5d2261a0ce51fd269ab79cf58cab 100755 (executable)
@@ -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
index 0f97440973649eb280d2b8f646c69c4339325cfd..03bda3446b783ac2415a02789e7fa2a59ed8ea5d 100755 (executable)
@@ -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
index 26ed9e3263be0cfe4c47604c9bfcad90e18aa572..c37fe78b00008ad6e2777b717fd69195903eb645 100755 (executable)
@@ -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
index 31603c681fbf8b241f7a130999f3877ac4cdeeed..1c8acf61e79f8c994311a8010ec479c16b25aa7f 100755 (executable)
@@ -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
index 0cdae879b729ff5cc2ba4146f6e16f8b5f397ffc..4cbc1e47c64cf7605af3cbb7bfe3a2fcbef73312 100755 (executable)
@@ -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
index 9be5dab1cfb12ccbc70081fe171531b858e0d478..43693dba56f7c28bb1072f0b3683e6552b8cf48e 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-from __future__ import print_function
 #
 # Option ROM signing utility
 #
index 2bc043112a666f3f097fe2220db4f272646b6618..20f002606614ce6f61e00bfe80cce86eba9ee05a 100755 (executable)
@@ -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
index d44dedd9e9b7c1a9e0043090ff3ab94fb17c3586..539ead62b498202fc40b42bff05f133469ed4bb8 100755 (executable)
@@ -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
index 62fccc5ebb36bbd6ee2cd6a9742237580976f99b..37307ac3664de5af4b379ae80bd9185d9f60da86 100755 (executable)
@@ -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
index c7e3986a2498fe851734db6f6693e73660ee73e1..98a5df4d4241b92316b363870e2f7b223ed9e1d4 100644 (file)
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # This script needs to be run on startup
 # qemu -kernel ${KERNEL} -s -S
index 1dd04ce33b72edb17723aca7b57041cd87fe1ee5..fd63c666015a2a94467de3d966d1c6be1d6d6e3c 100644 (file)
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test main engine
 #
index aa98912a821ecdeba9a67e5db41e4f01416fc6b2..34cebd54ba376ee7b556d54e4654336a4f097b60 100644 (file)
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test graph plotting
 #
index 61d2abbaad2fcf5b77d5628bcfa33c90a3d367ba..5bcc066bb9815383813daf72ac8aa453eea11554 100644 (file)
@@ -1,4 +1,3 @@
-from __future__ import print_function
 #
 # Migration test command line shell integration
 #
index 503fb8ad257c6c54e4e8e7419eda9fd8def2cbea..41232c11a3901abcdf12110dd2b7cb01d1dbe471 100755 (executable)
@@ -11,7 +11,6 @@
 # See the COPYING file in the top-level directory.
 #
 
-from __future__ import print_function
 
 import argparse
 import difflib
index 0a7b765d07ab2d74566e766516eb7cf871cf6c19..b4a21bf7b74a01d1fef8a15be867d41eb207e1f1 100755 (executable)
@@ -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
index b60a803daebb94e4e40e6518d6899e6591747b82..fb56a769b4f1479ad1ea861138f3b71d84907d1e 100755 (executable)
@@ -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
index ead04a1ab509b3293906790fd533a3fe1e1413e2..0473e824edabb3bb0899b1214c706edd8efbdc09 100644 (file)
@@ -1,4 +1,3 @@
-from __future__ import print_function
 # Common utilities and Python wrappers for qemu-iotests
 #
 # Copyright (C) 2012 IBM Corp.
index b158dd65a2697087dab2c1da3e28f8f3de5013de..588d62aebf2304a256da3e22d814f1e7defed29e 100755 (executable)
@@ -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
index 1c4fa2b09f1eadc7c5f62904e147f926ac9c47e4..94a07b2f6fa2d80c43def1546ddea6e492b2ee8c 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-from __future__ import print_function
 import sys
 import struct
 import string
index 36bca1de23704f36fd408501e835024118ede1a5..d6bec9606961687d5356bbff05d36bf38ef09e95 100755 (executable)
@@ -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
index 30714fa1a8f02044188392e0207dcfc10b66a88b..4dee6647e6e67f77a7d7f9de5b70fe414be2ba0f 100644 (file)
@@ -11,7 +11,6 @@
 # the COPYING file in the top-level directory.
 #
 
-from __future__ import print_function
 import os
 import re
 import sys