mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue