From f20c97f00d29d0a4459a0606164ceb192fe6432b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 21 Oct 2025 10:04:14 -0600 Subject: Remove Py_TPFLAGS_CHECKTYPES According to 'git annotate', the Py_TPFLAGS_CHECKTYPES was added to python-internal.h way back when gdb was first ported to Python 3. It was a compatibility fix for Python 2. This is not needed any more, because Python 2 is no longer supported. This patch removes the vestiges. Approved-By: Simon Marchi --- gdb/python/python-internal.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/python/python-internal.h') diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index e2baa6a70b5..54467ba49f3 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -90,8 +90,6 @@ static_assert (PY_VERSION_HEX >= 0x03040000); -#define Py_TPFLAGS_CHECKTYPES 0 - /* If Python.h does not define WITH_THREAD, then the various GIL-related functions will not be defined. However, PyGILState_STATE will be. */ -- cgit v1.2.3