Skip to content

Commit d273c5b

Browse files
committed
Fix incorrect docstring
I think this was a copy paste error.
1 parent f6dec59 commit d273c5b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Python/sysmodule.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,8 +2426,6 @@ sys_is_stack_trampoline_active_impl(PyObject *module)
24262426
sys.is_remote_debug_enabled
24272427
24282428
Return True if remote debugging is enabled, False otherwise.
2429-
2430-
If no stack profiler is activated, this function has no effect.
24312429
[clinic start generated code]*/
24322430

24332431
static PyObject *
@@ -2479,7 +2477,7 @@ sys_remote_exec_impl(PyObject *module, int pid, PyObject *script)
24792477
if (attr == INVALID_FILE_ATTRIBUTES) {
24802478
DWORD err = GetLastError();
24812479
PyMem_Free(debugger_script_path_w);
2482-
2480+
24832481
if (err == ERROR_FILE_NOT_FOUND || err == ERROR_PATH_NOT_FOUND) {
24842482
PyErr_SetString(PyExc_FileNotFoundError, "Script file does not exist");
24852483
}
@@ -2498,14 +2496,14 @@ sys_remote_exec_impl(PyObject *module, int pid, PyObject *script)
24982496
PyMem_Free(debugger_script_path_w);
24992497
return NULL;
25002498
}
2501-
2499+
25022500
PyMem_Free(debugger_script_path_w);
25032501
#else
25042502
const char *debugger_script_path = PyUnicode_AsUTF8(script);
25052503
if (debugger_script_path == NULL) {
25062504
return NULL;
25072505
}
2508-
2506+
25092507
if (access(debugger_script_path, F_OK | R_OK) != 0) {
25102508
switch (errno) {
25112509
case ENOENT:

0 commit comments

Comments
 (0)