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:
Jack Jansen 2000-01-24 10:37:59 +00:00
parent 0475104787
commit 4377a1a2c5
1 changed files with 1 additions and 1 deletions

View File

@ -979,7 +979,7 @@ initmacfs()
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
ErrorObject = PyErr_NewException("macfs.error", NULL, NULL); ErrorObject = PyMac_GetOSErrException();
PyDict_SetItemString(d, "error", ErrorObject); PyDict_SetItemString(d, "error", ErrorObject);
Mfsatype.ob_type = &PyType_Type; Mfsatype.ob_type = &PyType_Type;