projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0475104
)
Big oops: macfs has always been using a private exception but calling it mac.error.
author
Jack Jansen
<jack.jansen@cwi.nl>
Mon, 24 Jan 2000 10:37:59 +0000
(10:37 +0000)
committer
Jack Jansen
<jack.jansen@cwi.nl>
Mon, 24 Jan 2000 10:37:59 +0000
(10:37 +0000)
It now uses MacOS.Error (the OSErr valued error) and advertises that too. This
fix shouldn't break anything, I guess.
Mac/Modules/macfsmodule.c
patch
|
blob
|
history
diff --git
a/Mac/Modules/macfsmodule.c
b/Mac/Modules/macfsmodule.c
index 2c0c8e1deedad33ebfc17f9eb84467fe862b0530..0db402227458d865de183b097f14d2a1732b4fc2 100644
(file)
--- 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 = Py
Err_NewException("macfs.error", NULL, NULL
);
+ ErrorObject = Py
Mac_GetOSErrException(
);
PyDict_SetItemString(d, "error", ErrorObject);
Mfsatype.ob_type = &PyType_Type;