mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- Changed the m# format for PyArg_ParseTuple back to s#
- c2pstr has moved to a different include file
This commit is contained in:
parent
d1d242ec84
commit
eeccca9bdc
5 changed files with 7 additions and 7 deletions
|
@ -824,7 +824,7 @@ mfs_RawFSSpec(self, args)
|
|||
FSSpec *fssp;
|
||||
int size;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "m#", &fssp, &size))
|
||||
if (!PyArg_ParseTuple(args, "s#", &fssp, &size))
|
||||
return NULL;
|
||||
if ( size != sizeof(FSSpec) ) {
|
||||
PyErr_SetString(PyExc_TypeError, "Incorrect size for FSSpec record");
|
||||
|
@ -842,7 +842,7 @@ mfs_RawAlias(self, args)
|
|||
Handle h;
|
||||
int size;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "m#", &dataptr, &size))
|
||||
if (!PyArg_ParseTuple(args, "s#", &dataptr, &size))
|
||||
return NULL;
|
||||
h = NewHandle(size);
|
||||
if ( h == NULL ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue