gh-129900: Fix SystemExit return codes when the REPL is started from the command line (#129901)

This commit is contained in:
Peter Bierma 2025-03-25 15:48:46 -04:00 committed by GitHub
parent 8ada7a9e14
commit 90b82f2b61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 2 deletions

View file

@ -556,8 +556,7 @@ pymain_run_stdin(PyConfig *config)
int run = PyRun_AnyFileExFlags(stdin, "<stdin>", 0, &cf);
return (run != 0);
}
int run = pymain_run_module(L"_pyrepl", 0);
return (run != 0);
return pymain_run_module(L"_pyrepl", 0);
}