summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macfsmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-01-24 10:37:59 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-01-24 10:37:59 (GMT)
commit4377a1a2c5c67e2ddc944da815b7f1507c0b1461 (patch)
tree638f8f4ff352c7bad10121546ce28e501eef98f9 /Mac/Modules/macfsmodule.c
parent04751047874d614226cd0e7bdab3d99c9118999c (diff)
downloadcpython-4377a1a2c5c67e2ddc944da815b7f1507c0b1461.zip
cpython-4377a1a2c5c67e2ddc944da815b7f1507c0b1461.tar.gz
cpython-4377a1a2c5c67e2ddc944da815b7f1507c0b1461.tar.bz2
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.
Diffstat (limited to 'Mac/Modules/macfsmodule.c')
-rw-r--r--Mac/Modules/macfsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 2c0c8e1..0db4022 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -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;