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.
This commit is contained in:
parent
0475104787
commit
4377a1a2c5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue