Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
07f1dfa9
Commit
07f1dfa9
authored
Dec 03, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blacklisting LSInit and LSTerm, which are deprecated. Partial fix for 853558.
parent
c8de4585
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
32 deletions
+2
-32
Mac/Modules/launch/_Launchmodule.c
Mac/Modules/launch/_Launchmodule.c
+0
-32
Mac/Modules/launch/launchscan.py
Mac/Modules/launch/launchscan.py
+2
-0
No files found.
Mac/Modules/launch/_Launchmodule.c
View file @
07f1dfa9
...
...
@@ -57,34 +57,6 @@ LSItemInfoRecord_New(LSItemInfoRecord *it)
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
)
{
PyObject
*
_res
=
NULL
;
...
...
@@ -347,10 +319,6 @@ static PyObject *Launch_LSOpenCFURLRef(PyObject *_self, PyObject *_args)
}
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)"
)},
{
"LSCopyItemInfoForURL"
,
(
PyCFunction
)
Launch_LSCopyItemInfoForURL
,
1
,
...
...
Mac/Modules/launch/launchscan.py
View file @
07f1dfa9
...
...
@@ -44,6 +44,8 @@ class MyScanner(Scanner):
def
makeblacklistnames
(
self
):
return
[
"LSInit"
,
"LSTerm"
,
"kLSRequestAllInfo"
,
"kLSRolesAll"
,
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment