commit | 313523ce2dd67db67b7dcbcc5f6d6ca95922b34b | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Sat Sep 17 12:22:41 2016 -0700 |
committer | Steve Dower <steve.dower@microsoft.com> | Sat Sep 17 12:22:41 2016 -0700 |
tree | 0ebcad214cf25fb898023da2011dcc5183942ca0 | |
parent | d2154ab0b728c8b5f5ec44d3496e8760a0504581 [diff] |
Issue #28192: Don't import readline in isolated mode
diff --git a/Modules/main.c b/Modules/main.c index 0b82f48..6986d94 100644 --- a/Modules/main.c +++ b/Modules/main.c
@@ -703,7 +703,8 @@ 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)