Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fce2ef

Browse files
committed
Made MacOS.Error a class style exception (at last!).
1 parent d22eb59 commit 8fce2ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/mactoolboxglue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ PyObject *
104104
PyMac_GetOSErrException(void)
105105
{
106106
if (PyMac_OSErrException == NULL)
107-
PyMac_OSErrException = PyString_FromString("MacOS.Error");
107+
PyMac_OSErrException = PyErr_NewException("MacOS.Error", NULL, NULL);
108108
return PyMac_OSErrException;
109109
}
110110

0 commit comments

Comments
 (0)