mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-129900: Fix SystemExit return codes when the REPL is started from the command line (#129901)
This commit is contained in:
parent
8ada7a9e14
commit
90b82f2b61
3 changed files with 23 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue