diff options
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/file/_Filemodule.c | 3 | ||||
-rw-r--r-- | Mac/Modules/file/filesupport.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c index d61172e..5a1cafd 100644 --- a/Mac/Modules/file/_Filemodule.c +++ b/Mac/Modules/file/_Filemodule.c @@ -3194,7 +3194,8 @@ PyMac_GetFSSpec(PyObject *v, FSSpec *spec) #if TARGET_API_MAC_OSX if ( PyMac_GetFSRef(v, &fsr) ) { #else - if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) { + if (FSRef_Check(v)) { + fsr = ((FSRefObject *)v)->ob_itself; #endif err = FSGetCatalogInfo(&fsr, kFSCatInfoNone, NULL, NULL, spec, NULL); if (err != noErr) { diff --git a/Mac/Modules/file/filesupport.py b/Mac/Modules/file/filesupport.py index 1237d22..7223038 100644 --- a/Mac/Modules/file/filesupport.py +++ b/Mac/Modules/file/filesupport.py @@ -252,7 +252,8 @@ PyMac_GetFSSpec(PyObject *v, FSSpec *spec) #if TARGET_API_MAC_OSX if ( PyMac_GetFSRef(v, &fsr) ) { #else - if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) { + if (FSRef_Check(v)) { + fsr = ((FSRefObject *)v)->ob_itself; #endif err = FSGetCatalogInfo(&fsr, kFSCatInfoNone, NULL, NULL, spec, NULL); if (err != noErr) { |