]> granicus.if.org Git - python/commitdiff
Fix typo in socket.getaddrinfo() docstring.
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 30 Jun 2014 08:28:40 +0000 (11:28 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 30 Jun 2014 08:28:40 +0000 (11:28 +0300)
Reported by Krishna Kumar Thakur on docs@.

Modules/socketmodule.c

index d0149dda1c883043c9f5aefef90e7767009b31b5..7c08f8faa3a9c2958239ecfa981e13060523a406 100644 (file)
@@ -33,8 +33,8 @@ Module interface:
 - socket.ntohl(32 bit value) --> new int object
 - socket.htons(16 bit value) --> new int object
 - socket.htonl(32 bit value) --> new int object
-- socket.getaddrinfo(host, port [, family, socktype, proto, flags])
-    --> List of (family, socktype, proto, canonname, sockaddr)
+- socket.getaddrinfo(host, port [, family, type, proto, flags])
+    --> List of (family, type, proto, canonname, sockaddr)
 - socket.getnameinfo(sockaddr, flags) --> (host, port)
 - socket.AF_INET, socket.SOCK_STREAM, etc.: constants from <socket.h>
 - socket.has_ipv6: boolean value indicating if IPv6 is supported
@@ -5292,8 +5292,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
 }
 
 PyDoc_STRVAR(getaddrinfo_doc,
-"getaddrinfo(host, port [, family, socktype, proto, flags])\n\
-    -> list of (family, socktype, proto, canonname, sockaddr)\n\
+"getaddrinfo(host, port [, family, type, proto, flags])\n\
+    -> list of (family, type, proto, canonname, sockaddr)\n\
 \n\
 Resolve host and port into addrinfo struct.");