mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Added an error message when using FSRef objects on platforms that don't
support them.
This commit is contained in:
parent
df222d2691
commit
2bf52daedd
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue