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
d8dcd57e
Commit
d8dcd57e
authored
May 16, 2018
by
Serhiy Storchaka
Committed by
GitHub
May 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-33454: Fix arguments parsing in _xxsubinterpreters.channel_close(). (GH-6747)
parent
038b21f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
Modules/_xxsubinterpretersmodule.c
Modules/_xxsubinterpretersmodule.c
+3
-7
No files found.
Modules/_xxsubinterpretersmodule.c
View file @
d8dcd57e
...
...
@@ -2470,12 +2470,8 @@ PyDoc_STRVAR(channel_recv_doc,
Return a new object from the data at the from of the channel's queue."
);
static
PyObject
*
channel_close
(
PyObject
*
self
,
PyObject
*
args
,
PyObject
*
kwds
)
channel_close
(
PyObject
*
self
,
PyObject
*
id
)
{
PyObject
*
id
;
if
(
!
PyArg_UnpackTuple
(
args
,
"channel_recv"
,
1
,
1
,
&
id
))
{
return
NULL
;
}
int64_t
cid
=
_coerce_id
(
id
);
if
(
cid
<
0
)
{
return
NULL
;
...
...
@@ -2570,8 +2566,8 @@ static PyMethodDef module_functions[] = {
METH_VARARGS
,
channel_send_doc
},
{
"channel_recv"
,
(
PyCFunction
)
channel_recv
,
METH_VARARGS
,
channel_recv_doc
},
{
"channel_close"
,
(
PyCFunction
)
channel_close
,
METH_
VARARGS
,
channel_close_doc
},
{
"channel_close"
,
channel_close
,
METH_
O
,
channel_close_doc
},
{
"channel_drop_interpreter"
,
(
PyCFunction
)
channel_drop_interpreter
,
METH_VARARGS
|
METH_KEYWORDS
,
channel_drop_interpreter_doc
},
{
"_channel_id"
,
(
PyCFunction
)
channel__channel_id
,
...
...
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