]> granicus.if.org Git - python/commitdiff
Added an error message when using FSRef objects on platforms that don't
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 6 Nov 2001 15:57:26 +0000 (15:57 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 6 Nov 2001 15:57:26 +0000 (15:57 +0000)
support them.

Mac/Modules/macfsmodule.c

index 61127aa89baf2ea3070c8930372e4e95a06ec500..9b635e36e4aa0dc8c325fffd81cc51e6ab114ded 100644 (file)
@@ -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. */