From: Jack Jansen Date: Mon, 24 Jan 2000 10:37:59 +0000 (+0000) Subject: Big oops: macfs has always been using a private exception but calling it mac.error. X-Git-Tag: v1.6a1~527 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4377a1a2c5c67e2ddc944da815b7f1507c0b1461;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c index 2c0c8e1deeda..0db402227458 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;