summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-06-30 08:30:00 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-06-30 08:30:00 (GMT)
commitd9375f121e6d1e2bd63da6e0a7aa502535fc25d5 (patch)
tree0badd9971f194ba44bcc3b7be3866ac4bf23e2ae /Modules/socketmodule.c
parent0ca4703b28e01d2454d3804cd9da62798529cab6 (diff)
parenta6ec5ee3c8fcc7ca28db737a0ad60d4d63b116c0 (diff)
downloadcpython-d9375f121e6d1e2bd63da6e0a7aa502535fc25d5.zip
cpython-d9375f121e6d1e2bd63da6e0a7aa502535fc25d5.tar.gz
cpython-d9375f121e6d1e2bd63da6e0a7aa502535fc25d5.tar.bz2
Fix typo in socket.getaddrinfo() docstring.
Reported by Krishna Kumar Thakur on docs@.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 1facc49..780447c 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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
@@ -5290,8 +5290,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.");