Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1693ba8

Browse files
committed
Silence warning about getdefaulttimeout in PyMethodDef.
1 parent 7fa4bfa commit 1693ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,7 @@ static PyMethodDef socket_methods[] = {
28202820
METH_VARARGS, getaddrinfo_doc},
28212821
{"getnameinfo", socket_getnameinfo,
28222822
METH_VARARGS, getnameinfo_doc},
2823-
{"getdefaulttimeout", socket_getdefaulttimeout,
2823+
{"getdefaulttimeout", (PyCFunction)socket_getdefaulttimeout,
28242824
METH_NOARGS, getdefaulttimeout_doc},
28252825
{"setdefaulttimeout", socket_setdefaulttimeout,
28262826
METH_O, setdefaulttimeout_doc},

0 commit comments

Comments
 (0)