Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Drop commented-out code.
  • Loading branch information
ericsnowcurrently committed Sep 14, 2017
commit 5b87111ba5359c84e3d2a027e70212ac00ef073c
22 changes: 0 additions & 22 deletions Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,20 +294,6 @@ PyImport_GetModuleDict(void)
if (interp->modules == NULL)
Py_FatalError("PyImport_GetModuleDict: no module dictionary!");
return interp->modules;

/* We aren't ready to do this yet.
PyObject *sysdict = PyThreadState_GET()->interp->sysdict;
if (sysdict == NULL) {
Py_FatalError("PyImport_GetModuleDict: no sys module!");
}

_Py_IDENTIFIER(modules);
PyObject *modules = _PyDict_GetItemId(sysdict, &PyId_modules);
if (modules == NULL) {
Py_FatalError("lost sys.modules");
}
return modules;
*/
}

/* In some corner cases it is important to be sure that the import
Expand All @@ -319,14 +305,6 @@ _PyImport_IsInitialized(PyInterpreterState *interp)
{
if (interp->modules == NULL)
return 0;
/* We aren't ready to do this yet.
if (interp->sysdict == NULL)
return 0;
_Py_IDENTIFIER(modules);
PyObject *modules = _PyDict_GetItemId(interp->sysdict, &PyId_modules);
if (modules == NULL)
return 0;
*/
return 1;
}

Expand Down