Made MacOS.Error a class style exception (at last!).

This commit is contained in:
Jack Jansen 2002-10-19 22:02:21 +00:00
parent d22eb59535
commit 8fce2ef84c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}