]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix method names. Will backport.
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 31 Mar 2007 18:54:18 +0000 (18:54 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 31 Mar 2007 18:54:18 +0000 (18:54 +0000)
Modules/socketmodule.c

index 96682ca86d3bbb1f418500f44527bf1c24b927fa..21270a3d9f47b3200b0f2c53828a163c93270ac2 100644 (file)
@@ -2384,7 +2384,7 @@ sock_recv_into(PySocketSockObject *s, PyObject *args, PyObject *kwds)
        int buflen;
 
        /* Get the buffer's memory */
-       if (!PyArg_ParseTupleAndKeywords(args, kwds, "w#|ii:recv", kwlist,
+       if (!PyArg_ParseTupleAndKeywords(args, kwds, "w#|ii:recv_into", kwlist,
                                         &buf, &buflen, &recvlen, &flags))
                return NULL;
        assert(buf != 0 && buflen > 0);
@@ -2559,8 +2559,9 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds)
 
        PyObject *addr = NULL;
 
-       if (!PyArg_ParseTupleAndKeywords(args, kwds, "w#|ii:recvfrom", kwlist,
-                                        &buf, &buflen, &recvlen, &flags))
+       if (!PyArg_ParseTupleAndKeywords(args, kwds, "w#|ii:recvfrom_into",
+                                        kwlist, &buf, &buflen,
+                                        &recvlen, &flags))
                return NULL;
        assert(buf != 0 && buflen > 0);