mirror of https://github.com/python/cpython.git
Added an error message when using FSRef objects on platforms that don't
support them.
This commit is contained in:
parent
df222d2691
commit
2bf52daedd
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue