From 6968b056efdec8cf178901cf5bfcf65e1c8eac65 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 27 Feb 2007 19:02:19 +0000 Subject: SF patch #1669633, add methods for bytes from Pete Shinners. --- Python/pythonrun.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 7501456ca8..d60ca9e79b 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -186,6 +186,9 @@ Py_InitializeEx(int install_sigs) if (!_PyLong_Init()) Py_FatalError("Py_Initialize: can't init longs"); + if (!PyBytes_Init()) + Py_FatalError("Py_Initialize: can't init bytes"); + _PyFloat_Init(); interp->modules = PyDict_New(); @@ -457,6 +460,7 @@ Py_Finalize(void) PyList_Fini(); PySet_Fini(); PyString_Fini(); + PyBytes_Fini(); PyLong_Fini(); PyFloat_Fini(); -- cgit v1.2.1