mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Made MacOS.Error a class style exception (at last!).
This commit is contained in:
parent
d22eb59535
commit
8fce2ef84c
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ PyObject *
|
||||||
PyMac_GetOSErrException(void)
|
PyMac_GetOSErrException(void)
|
||||||
{
|
{
|
||||||
if (PyMac_OSErrException == NULL)
|
if (PyMac_OSErrException == NULL)
|
||||||
PyMac_OSErrException = PyString_FromString("MacOS.Error");
|
PyMac_OSErrException = PyErr_NewException("MacOS.Error", NULL, NULL);
|
||||||
return PyMac_OSErrException;
|
return PyMac_OSErrException;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue