summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-04-08 17:00:54 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-04-08 17:00:54 (GMT)
commit1f828b62979a14be030dbb21609610bd3ff3a64c (patch)
treeda283e5c3118f7a790a81fcf7325279d12bbb8a0 /Python/pythonrun.c
parent5b172978bbf44af7832c3638afe071b10751e664 (diff)
downloadcpython-1f828b62979a14be030dbb21609610bd3ff3a64c.zip
cpython-1f828b62979a14be030dbb21609610bd3ff3a64c.tar.gz
cpython-1f828b62979a14be030dbb21609610bd3ff3a64c.tar.bz2
This may well be my final checkin before 2.2.1.
If you think I've forgotten something, now is a good time to howl (although I won't read the howl for a good few hours 'cause I'm going home). backport lemburg's checkin of revision 2.158 of pythonrun.c Move Unicode finalization further down in the chain. Fixes bug #525620.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index ad92004..4b5cba5 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -219,11 +219,6 @@ Py_Finalize(void)
/* Disable signal handling */
PyOS_FiniInterrupts();
-#ifdef Py_USING_UNICODE
- /* Cleanup Unicode implementation */
- _PyUnicode_Fini();
-#endif
-
/* Cleanup Codec registry */
_PyCodecRegistry_Fini();
@@ -268,6 +263,11 @@ Py_Finalize(void)
PyInt_Fini();
PyFloat_Fini();
+#ifdef Py_USING_UNICODE
+ /* Cleanup Unicode implementation */
+ _PyUnicode_Fini();
+#endif
+
/* XXX Still allocated:
- various static ad-hoc pointers to interned strings
- int and float free list blocks