Skip to content

Commit a809a48

Browse files
committed
pythongh-132950: Check fir Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled
1 parent b402a48 commit a809a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ static PyObject *
24322432
sys_is_remote_debug_enabled_impl(PyObject *module)
24332433
/*[clinic end generated code: output=7ca3d38bdd5935eb input=7335c4a2fe8cf4f3]*/
24342434
{
2435-
#ifndef Py_REMOTE_DEBUG
2435+
#if !definedPy_REMOTE_DEBUG) || !Py_SUPPORTS_REMOTE_DEBUG
24362436
Py_RETURN_FALSE;
24372437
#else
24382438
const PyConfig *config = _Py_GetConfig();

0 commit comments

Comments
 (0)