mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-98040: Remove just the imp
module (#98573)
This commit is contained in:
parent
79b9db9295
commit
e1f14643dc
24 changed files with 40 additions and 1537 deletions
|
@ -2173,10 +2173,9 @@ add_main_module(PyInterpreterState *interp)
|
|||
Py_DECREF(bimod);
|
||||
}
|
||||
|
||||
/* Main is a little special - imp.is_builtin("__main__") will return
|
||||
* False, but BuiltinImporter is still the most appropriate initial
|
||||
* setting for its __loader__ attribute. A more suitable value will
|
||||
* be set if __main__ gets further initialized later in the startup
|
||||
/* Main is a little special - BuiltinImporter is the most appropriate
|
||||
* initial setting for its __loader__ attribute. A more suitable value
|
||||
* will be set if __main__ gets further initialized later in the startup
|
||||
* process.
|
||||
*/
|
||||
loader = _PyDict_GetItemStringWithError(d, "__loader__");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue