summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macfsmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-10-07 21:47:25 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-10-07 21:47:25 (GMT)
commit55e3927f58b848f0c980158527270b172a7ac68b (patch)
tree10e85ee614d64cb37d3f86e8cbf61e188c09369d /Mac/Modules/macfsmodule.c
parentd2c0ec78d20d5e4de34f87e273e6bfb5eb152987 (diff)
downloadcpython-55e3927f58b848f0c980158527270b172a7ac68b.zip
cpython-55e3927f58b848f0c980158527270b172a7ac68b.tar.gz
cpython-55e3927f58b848f0c980158527270b172a7ac68b.tar.bz2
New exception interface
Diffstat (limited to 'Mac/Modules/macfsmodule.c')
-rw-r--r--Mac/Modules/macfsmodule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 2c5af1e..2c0c8e1 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 = PyString_FromString("macfs.error");
+ ErrorObject = PyErr_NewException("macfs.error", NULL, NULL);
PyDict_SetItemString(d, "error", ErrorObject);
Mfsatype.ob_type = &PyType_Type;
@@ -992,8 +992,4 @@ initmacfs()
Py_INCREF(&Mfsitype);
PyDict_SetItemString(d, "FInfoType", (PyObject *)&Mfsitype);
/* XXXX Add constants here */
-
- /* Check for errors */
- if (PyErr_Occurred())
- Py_FatalError("can't initialize module macfs");
}