[Python-checkins] python/dist/src/Mac/Modules/launch
_Launchmodule.c, 1.1, 1.2 launchscan.py, 1.1, 1.2
jackjansen at users.sourceforge.net
jackjansen at users.sourceforge.net
Wed Dec 3 15:52:09 EST 2003
Update of /cvsroot/python/python/dist/src/Mac/Modules/launch
In directory sc8-pr-cvs1:/tmp/cvs-serv21374
Modified Files:
_Launchmodule.c launchscan.py
Log Message:
Blacklisting LSInit and LSTerm, which are deprecated. Partial fix for 853558.
Index: _Launchmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/launch/_Launchmodule.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _Launchmodule.c 2 Dec 2003 23:01:43 -0000 1.1
--- _Launchmodule.c 3 Dec 2003 20:52:07 -0000 1.2
***************
*** 58,89 ****
static PyObject *Launch_Error;
- static PyObject *Launch_LSInit(PyObject *_self, PyObject *_args)
- {
- PyObject *_res = NULL;
- OSStatus _err;
- LSInitializeFlags inFlags;
- if (!PyArg_ParseTuple(_args, "l",
- &inFlags))
- return NULL;
- _err = LSInit(inFlags);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
- }
-
- static PyObject *Launch_LSTerm(PyObject *_self, PyObject *_args)
- {
- PyObject *_res = NULL;
- OSStatus _err;
- if (!PyArg_ParseTuple(_args, ""))
- return NULL;
- _err = LSTerm();
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
- }
-
static PyObject *Launch_LSCopyItemInfoForRef(PyObject *_self, PyObject *_args)
{
--- 58,61 ----
***************
*** 348,355 ****
static PyMethodDef Launch_methods[] = {
- {"LSInit", (PyCFunction)Launch_LSInit, 1,
- PyDoc_STR("(LSInitializeFlags inFlags) -> None")},
- {"LSTerm", (PyCFunction)Launch_LSTerm, 1,
- PyDoc_STR("() -> None")},
{"LSCopyItemInfoForRef", (PyCFunction)Launch_LSCopyItemInfoForRef, 1,
PyDoc_STR("(FSRef inItemRef, LSRequestedInfo inWhichInfo) -> (LSItemInfoRecord outItemInfo)")},
--- 320,323 ----
Index: launchscan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/launch/launchscan.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** launchscan.py 2 Dec 2003 23:01:43 -0000 1.1
--- launchscan.py 3 Dec 2003 20:52:07 -0000 1.2
***************
*** 45,48 ****
--- 45,50 ----
def makeblacklistnames(self):
return [
+ "LSInit",
+ "LSTerm",
"kLSRequestAllInfo",
"kLSRolesAll",
More information about the Python-checkins
mailing list