summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-27 04:41:00 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-27 04:41:00 (GMT)
commitf7a94e4b44f2e5d565864ac784071efb35569161 (patch)
treea999efa04b5fb726df2551ae8e57a4fe1a4064b7 /Mac/Modules
parent67feb09d065aee7a125b226c0249c4db37a1f4f4 (diff)
downloadcpython-f7a94e4b44f2e5d565864ac784071efb35569161.zip
cpython-f7a94e4b44f2e5d565864ac784071efb35569161.tar.gz
cpython-f7a94e4b44f2e5d565864ac784071efb35569161.tar.bz2
SF patch# 1761465 by Jeffrey Yasskin.
Fix test_aepack and test_applesingle.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/ae/_AEmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c
index de7c25e..3442619 100644
--- a/Mac/Modules/ae/_AEmodule.c
+++ b/Mac/Modules/ae/_AEmodule.c
@@ -835,9 +835,9 @@ static PyObject *AEDesc_get_data(AEDescObject *self, void *closure)
OSErr err;
size = AEGetDescDataSize(&self->ob_itself);
- if ( (res = PyString_FromStringAndSize(NULL, size)) == NULL )
+ if ( (res = PyBytes_FromStringAndSize(NULL, size)) == NULL )
return NULL;
- if ( (ptr = PyString_AsString(res)) == NULL )
+ if ( (ptr = PyBytes_AsString(res)) == NULL )
return NULL;
if ( (err=AEGetDescData(&self->ob_itself, ptr, size)) < 0 )
return PyMac_Error(err);