Issue #28192: Don't import readline in isolated mode

This commit is contained in:
Steve Dower 2016-09-17 12:22:41 -07:00
parent d2154ab0b7
commit 313523ce2d
3 changed files with 11 additions and 12 deletions

View file

@ -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)