From 957a23b0883c1d92f4d5c5de2459319615a8ed34 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 4 May 2013 20:45:02 +0200 Subject: Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again. --- Python/pythonrun.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index ee6071e631..ddda4a4cd0 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -506,9 +506,6 @@ Py_Finalize(void) /* Disable signal handling */ PyOS_FiniInterrupts(); - /* Clear type lookup cache */ - PyType_ClearCache(); - /* Collect garbage. This may call finalizers; it's nice to call these * before all modules are destroyed. * XXX If a __del__ or weakref callback is triggered here, and tries to @@ -614,6 +611,7 @@ Py_Finalize(void) PyFloat_Fini(); PyDict_Fini(); PySlice_Fini(); + _PyType_Fini(); /* Cleanup Unicode implementation */ _PyUnicode_Fini(); -- cgit v1.2.1