diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-10-19 22:02:21 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-10-19 22:02:21 (GMT) |
commit | 8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055 (patch) | |
tree | 3a089054cb752388ce6a07fb37f4ad95e862fc58 | |
parent | d22eb5953506e1706b585cbcb3d08483062bd0b0 (diff) | |
download | cpython-8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055.zip cpython-8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055.tar.gz cpython-8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055.tar.bz2 |
Made MacOS.Error a class style exception (at last!).
-rw-r--r-- | Python/mactoolboxglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index 68876eb..13e7afa 100644 --- a/Python/mactoolboxglue.c +++ b/Python/mactoolboxglue.c @@ -104,7 +104,7 @@ PyObject * PyMac_GetOSErrException(void) { if (PyMac_OSErrException == NULL) - PyMac_OSErrException = PyString_FromString("MacOS.Error"); + PyMac_OSErrException = PyErr_NewException("MacOS.Error", NULL, NULL); return PyMac_OSErrException; } |