From d61186d8f8ebfe85e4823d4ac3f8db91db52869a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 16 Oct 2024 09:58:14 -0600 Subject: Require Python 3.4 I believe we previously agreed that the minimum supported Python version should be 3.4. This patch makes this change, harmonizing the documentation (which was inconsistent about the minimum version) and the code. New in v2: rebased, and removed a pre-3.4 workaround from __init__.py. Reviewed-By: Eli Zaretskii Approved-by: Kevin Buettner Acked-By: Tom de Vries Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31870 --- gdb/python/lib/gdb/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gdb/python/lib') diff --git a/gdb/python/lib/gdb/__init__.py b/gdb/python/lib/gdb/__init__.py index 69c15b16d87..03eb426b662 100644 --- a/gdb/python/lib/gdb/__init__.py +++ b/gdb/python/lib/gdb/__init__.py @@ -19,12 +19,7 @@ import sys import threading import traceback from contextlib import contextmanager - -# Python 3 moved "reload" -if sys.version_info >= (3, 4): - from importlib import reload -else: - from imp import reload +from importlib import reload import _gdb -- cgit v1.2.3