From: Jack Jansen Date: Sat, 19 Oct 2002 22:02:21 +0000 (+0000) Subject: Made MacOS.Error a class style exception (at last!). X-Git-Tag: v2.3c1~3715 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055;p=thirdparty%2FPython%2Fcpython.git Made MacOS.Error a class style exception (at last!). --- diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index 68876eb08fbe..13e7afa6be5a 100644 --- a/Python/mactoolboxglue.c +++ b/Python/mactoolboxglue.c @@ -104,7 +104,7 @@ PyObject * PyMac_GetOSErrException(void) { if (PyMac_OSErrException == NULL) - PyMac_OSErrException = PyString_FromString("MacOS.Error"); + PyMac_OSErrException = PyErr_NewException("MacOS.Error", NULL, NULL); return PyMac_OSErrException; }