On Tue, Aug 19, 2025 at 11:24:09AM +0100, Peter Maydell wrote: > Some of our Python scripts still include the line > from __future__ import print_function > > which is intended to allow a Python 2 to handle the Python 3 print() > syntax. This particular part of the future arrived many years ago, > and our minimum Python version is 3.9, so we don't need to keep > this line around. > > NB: the scripts in tests/tcg/*/gdbstub/ are run with whatever Python > gdb was built against, but we can safely assume that that was a > Python 3 because our supported distros are all on Python 3. In any > case these are only run as part of "make check-tcg", not by > end-users. > > Commit created with: > > sed -i -e '/import print_function/d' $(git grep -l 'from __future__') > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > scripts/userfaultfd-wrlat.py | 1 - > tests/guest-debug/test_gdbstub.py | 1 - > tests/tcg/aarch64/gdbstub/test-mte.py | 1 - > tests/tcg/aarch64/gdbstub/test-sve-ioctl.py | 1 - > tests/tcg/aarch64/gdbstub/test-sve.py | 1 - > tests/tcg/multiarch/gdbstub/interrupt.py | 1 - > tests/tcg/multiarch/gdbstub/memory.py | 1 - > tests/tcg/multiarch/gdbstub/sha1.py | 1 - > tests/tcg/multiarch/gdbstub/test-proc-mappings.py | 1 - > tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py | 1 - > tests/tcg/multiarch/gdbstub/test-qxfer-siginfo-read.py | 1 - > tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py | 1 - > tests/tcg/s390x/gdbstub/test-signals-s390x.py | 1 - > tests/tcg/s390x/gdbstub/test-svc.py | 1 - > 14 files changed, 14 deletions(-)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|