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
a10cc7ea
Commit
a10cc7ea
authored
Jan 19, 2001
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treat an empty kwdict argument the same as a missing one.
parent
5fcafdf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
Mac/Modules/Nav.c
Mac/Modules/Nav.c
+20
-20
No files found.
Mac/Modules/Nav.c
View file @
a10cc7ea
...
...
@@ -437,8 +437,8 @@ nav_NavGetFile(self, args, kw)
NavTypeListHandle
typeList
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -474,8 +474,8 @@ nav_NavPutFile(self, args, kw)
OSType
fileCreator
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -510,7 +510,7 @@ nav_NavAskSaveChanges(self, args, kw)
NavEventUPP
eventProc
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"l"
,
&
action
))
return
NULL
;
dict
=
kw
;
...
...
@@ -542,8 +542,8 @@ nav_NavCustomAskSaveChanges(self, args, kw)
NavEventUPP
eventProc
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -574,8 +574,8 @@ nav_NavAskDiscardChanges(self, args, kw)
NavEventUPP
eventProc
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -610,8 +610,8 @@ nav_NavChooseFile(self, args, kw)
NavTypeListHandle
typeList
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -646,8 +646,8 @@ nav_NavChooseFolder(self, args, kw)
NavObjectFilterUPP
filterProc
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -682,8 +682,8 @@ nav_NavChooseVolume(self, args, kw)
NavObjectFilterUPP
filterProc
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -718,8 +718,8 @@ nav_NavChooseObject(self, args, kw)
NavObjectFilterUPP
filterProc
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -753,8 +753,8 @@ nav_NavNewFolder(self, args, kw)
NavEventUPP
eventProc
=
NULL
;
OSErr
err
;
if
(
kw
)
{
if
(
!
PyArg_ParseTuple
(
args
,
""
))
if
(
kw
&&
PyObject_IsTrue
(
kw
)
)
{
if
(
!
PyArg_ParseTuple
(
args
,
"
;either keyword arguments or dictionary expected
"
))
return
NULL
;
dict
=
kw
;
}
else
if
(
!
PyArg_ParseTuple
(
args
,
"O!"
,
&
PyDict_Type
,
&
dict
))
...
...
@@ -771,7 +771,7 @@ nav_NavNewFolder(self, args, kw)
}
#if 0
XXXX I don't know what to do with the void * argument
/* XXXX I don't know what to do with the void * argument */
static char nav_NavCustomControl__doc__[] =
""
;
...
...
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