diff options
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index a2a692ad..4a2fb58 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1161,7 +1161,7 @@ sock_accept(PySocketSockObject *s) if (addr == NULL) goto finally; - res = Py_BuildValue("OO", sock, addr); + res = PyTuple_Pack(2, sock, addr); finally: Py_XDECREF(sock); @@ -1911,7 +1911,7 @@ sock_recvfrom(PySocketSockObject *s, PyObject *args) addrlen))) goto finally; - ret = Py_BuildValue("OO", buf, addr); + ret = PyTuple_Pack(2, buf, addr); finally: Py_XDECREF(addr); |