[Python-checkins] cpython (3.4): Fix typo in socket.getaddrinfo() docstring.
berker.peksag
python-checkins at python.org
Mon Jun 30 10:29:59 CEST 2014
http://hg.python.org/cpython/rev/4c8fc852244a
changeset: 91480:4c8fc852244a
branch: 3.4
parent: 91478:ec27c85d3001
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Jun 30 11:28:40 2014 +0300
summary:
Fix typo in socket.getaddrinfo() docstring.
Reported by Krishna Kumar Thakur on docs at .
files:
Modules/socketmodule.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -33,8 +33,8 @@
- 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 @@
}
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.");
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list