Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 76640:eb68502731dd
Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.
Thanks to Eric Snow for the patch.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Sun, 29 Apr 2012 14:38:11 -0400 |
| parents | 57d558f1904d |
| children | b0eb7d2a9542 |
line wrap: on
line diff
--- a/Python/pythonrun.c Sun Apr 29 19:46:19 2012 +0200 +++ b/Python/pythonrun.c Sun Apr 29 14:38:11 2012 -0400 @@ -314,9 +314,6 @@ interp->modules = PyDict_New(); if (interp->modules == NULL) Py_FatalError("Py_Initialize: can't make modules dictionary"); - interp->modules_reloading = PyDict_New(); - if (interp->modules_reloading == NULL) - Py_FatalError("Py_Initialize: can't make modules_reloading dictionary"); /* Init Unicode implementation; relies on the codec registry */ if (_PyUnicode_Init() < 0) @@ -680,7 +677,6 @@ /* XXX The following is lax in error checking */ interp->modules = PyDict_New(); - interp->modules_reloading = PyDict_New(); bimod = _PyImport_FindBuiltin("builtins"); if (bimod != NULL) {
