diff options
| author | Tom Tromey <tromey@adacore.com> | 2024-10-16 09:58:14 -0600 |
|---|---|---|
| committer | Tom Tromey <tromey@adacore.com> | 2025-05-30 07:09:53 -0600 |
| commit | d61186d8f8ebfe85e4823d4ac3f8db91db52869a (patch) | |
| tree | 2efcdeb4136d6096bd71b84703c5b6464e7a768c /gdb/python/lib | |
| parent | 429fb15134cfbdafe2b203086ee05d827726b63b (diff) | |
| download | binutils-d61186d8f8ebfe85e4823d4ac3f8db91db52869a.tar.gz binutils-d61186d8f8ebfe85e4823d4ac3f8db91db52869a.tar.bz2 binutils-d61186d8f8ebfe85e4823d4ac3f8db91db52869a.zip | |
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 <eliz@gnu.org>
Approved-by: Kevin Buettner <kevinb@redhat.com>
Acked-By: Tom de Vries <tdevries@suse.de>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31870
Diffstat (limited to 'gdb/python/lib')
| -rw-r--r-- | gdb/python/lib/gdb/__init__.py | 7 |
1 files changed, 1 insertions, 6 deletions
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 |
