Commit 4377a1a2 authored by Jack Jansen's avatar Jack Jansen

Big oops: macfs has always been using a private exception but calling it mac.error.

It now uses MacOS.Error (the OSErr valued error) and advertises that too. This
fix shouldn't break anything, I guess.
parent 04751047
......@@ -979,7 +979,7 @@ initmacfs()
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
ErrorObject = PyErr_NewException("macfs.error", NULL, NULL);
ErrorObject = PyMac_GetOSErrException();
PyDict_SetItemString(d, "error", ErrorObject);
Mfsatype.ob_type = &PyType_Type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment