mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #28192: Don't import readline in isolated mode
This commit is contained in:
parent
d2154ab0b7
commit
313523ce2d
3 changed files with 11 additions and 12 deletions
|
|
@ -703,7 +703,8 @@ Py_Main(int argc, wchar_t **argv)
|
|||
PySys_SetArgv(argc-_PyOS_optind, argv+_PyOS_optind);
|
||||
|
||||
if ((Py_InspectFlag || (command == NULL && filename == NULL && module == NULL)) &&
|
||||
isatty(fileno(stdin))) {
|
||||
isatty(fileno(stdin)) &&
|
||||
!Py_IsolatedFlag) {
|
||||
PyObject *v;
|
||||
v = PyImport_ImportModule("readline");
|
||||
if (v == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue