diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-11-06 15:57:26 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-11-06 15:57:26 (GMT) |
commit | 2bf52daedd38e4491bf1df2787b38708f0bdd3f0 (patch) | |
tree | ed0dadd573930f7364908865da139cecffa533cb /Mac/Modules | |
parent | df222d269116db8ec6a391b1c3b7569951146170 (diff) | |
download | cpython-2bf52daedd38e4491bf1df2787b38708f0bdd3f0.zip cpython-2bf52daedd38e4491bf1df2787b38708f0bdd3f0.tar.gz cpython-2bf52daedd38e4491bf1df2787b38708f0bdd3f0.tar.bz2 |
Added an error message when using FSRef objects on platforms that don't
support them.
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/macfsmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c index 61127aa..9b635e3 100644 --- a/Mac/Modules/macfsmodule.c +++ b/Mac/Modules/macfsmodule.c @@ -1131,6 +1131,7 @@ int PyMac_GetFSRef(PyObject *v, FSRef *fsr) { #if TARGET_API_MAC_OS8 + PyErr_SetString(PyExc_TypeError, "FSRef objects not supported on this platform"); return 0; #else /* If it's an FSRef we're also okay. */ |