diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-09-11 13:14:15 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-09-16 17:31:53 +0100 |
| commit | 424dc390ec68263b5fc82b88f0f81bc3f374ad44 (patch) | |
| tree | 15f4a075acde706eef7f63a48e113103ea79fd93 /tests/tcg/multiarch/gdbstub/sha1.py | |
| parent | 6a9fa5ef3230a7d51e0d953a59ee9ef10af705b8 (diff) | |
| download | focaccia-qemu-424dc390ec68263b5fc82b88f0f81bc3f374ad44.tar.gz focaccia-qemu-424dc390ec68263b5fc82b88f0f81bc3f374ad44.zip | |
tests, scripts: Don't import print_function from __future__
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.maydell@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20250819102409.2117969-1-peter.maydell@linaro.org
Diffstat (limited to 'tests/tcg/multiarch/gdbstub/sha1.py')
| -rw-r--r-- | tests/tcg/multiarch/gdbstub/sha1.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/tcg/multiarch/gdbstub/sha1.py b/tests/tcg/multiarch/gdbstub/sha1.py index 1ce711a402..3403b82fd4 100644 --- a/tests/tcg/multiarch/gdbstub/sha1.py +++ b/tests/tcg/multiarch/gdbstub/sha1.py @@ -1,4 +1,3 @@ -from __future__ import print_function # # A very simple smoke test for debugging the SHA1 userspace test on # each target. |