gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled (#132959)

This commit is contained in:
Pablo Galindo Salgado 2025-04-25 17:38:48 +01:00 committed by GitHub
parent ac5424d6a9
commit 622176513e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2440,7 +2440,7 @@ static PyObject *
sys_is_remote_debug_enabled_impl(PyObject *module)
/*[clinic end generated code: output=7ca3d38bdd5935eb input=7335c4a2fe8cf4f3]*/
{
#ifndef Py_REMOTE_DEBUG
#if !defined(Py_REMOTE_DEBUG) || !defined(Py_SUPPORTS_REMOTE_DEBUG)
Py_RETURN_FALSE;
#else
const PyConfig *config = _Py_GetConfig();