mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Updated (and regenerated) for name change in tp_init method arguments:
they are now _self, _args and _kwds.
This commit is contained in:
parent
a6af76cbe4
commit
918a9e2f63
29 changed files with 1790 additions and 1779 deletions
|
@ -27,21 +27,21 @@ PyObject *PyMac_GetOSErrException(void);
|
|||
static int
|
||||
OptCFStringRefObj_Convert(PyObject *v, CFStringRef *spec)
|
||||
{
|
||||
if (v == Py_None) {
|
||||
*spec = NULL;
|
||||
return 1;
|
||||
}
|
||||
return CFStringRefObj_Convert(v, spec);
|
||||
if (v == Py_None) {
|
||||
*spec = NULL;
|
||||
return 1;
|
||||
}
|
||||
return CFStringRefObj_Convert(v, spec);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
OptCFStringRefObj_New(CFStringRef it)
|
||||
{
|
||||
if (it == NULL) {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
return CFStringRefObj_New(it);
|
||||
if (it == NULL) {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
return CFStringRefObj_New(it);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -50,13 +50,13 @@ OptCFStringRefObj_New(CFStringRef it)
|
|||
PyObject *
|
||||
LSItemInfoRecord_New(LSItemInfoRecord *it)
|
||||
{
|
||||
return Py_BuildValue("{s:is:O&s:O&s:O&s:O&s:i}",
|
||||
"flags", it->flags,
|
||||
"filetype", PyMac_BuildOSType, it->filetype,
|
||||
"creator", PyMac_BuildOSType, it->creator,
|
||||
"extension", OptCFStringRefObj_New, it->extension,
|
||||
"iconFileName", OptCFStringRefObj_New, it->iconFileName,
|
||||
"kindID", it->kindID);
|
||||
return Py_BuildValue("{s:is:O&s:O&s:O&s:O&s:i}",
|
||||
"flags", it->flags,
|
||||
"filetype", PyMac_BuildOSType, it->filetype,
|
||||
"creator", PyMac_BuildOSType, it->creator,
|
||||
"extension", OptCFStringRefObj_New, it->extension,
|
||||
"iconFileName", OptCFStringRefObj_New, it->iconFileName,
|
||||
"kindID", it->kindID);
|
||||
}
|
||||
|
||||
static PyObject *Launch_Error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue