diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2012-04-15 15:12:37 +0100 |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2012-04-15 15:12:37 +0100 |
commit | 0276a326e15ced5fe6494d40658e9652ac90c5d5 (patch) | |
tree | a6b2218dbfd8082a7976f7ae7b22c7e138a201a0 /Python/pystate.c | |
parent | 4536a907e314836a320414ee5bf3bf7557fef7b6 (diff) | |
parent | 3cd6793317074f286add6fff3627776fe3a50483 (diff) | |
download | cpython-0276a326e15ced5fe6494d40658e9652ac90c5d5.tar.gz |
Issue #13889: Merge fix from 3.2.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 31b5423d38..fdcbbcec87 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -79,6 +79,7 @@ PyInterpreterState_New(void) interp->codec_error_registry = NULL; interp->codecs_initialized = 0; interp->fscodec_initialized = 0; + interp->importlib = NULL; #ifdef HAVE_DLOPEN #ifdef RTLD_NOW interp->dlopenflags = RTLD_NOW; @@ -116,6 +117,7 @@ PyInterpreterState_Clear(PyInterpreterState *interp) Py_CLEAR(interp->modules_reloading); Py_CLEAR(interp->sysdict); Py_CLEAR(interp->builtins); + Py_CLEAR(interp->importlib); } |