From 8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sat, 19 Oct 2002 22:02:21 +0000 Subject: Made MacOS.Error a class style exception (at last!). --- Python/mactoolboxglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index 68876eb..13e7afa 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; } -- cgit v0.12