mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
More unconsting.
This commit is contained in:
parent
f4e6928c4d
commit
02cbf4ae4b
9 changed files with 56 additions and 62 deletions
|
@ -2566,7 +2566,7 @@ sock_initobj(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
PySocketSockObject *s = (PySocketSockObject *)self;
|
||||
SOCKET_T fd;
|
||||
int family = AF_INET, type = SOCK_STREAM, proto = 0;
|
||||
static const char *keywords[] = {"family", "type", "proto", 0};
|
||||
static char *keywords[] = {"family", "type", "proto", 0};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||
"|iii:socket", keywords,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue