From: Georg Brandl Date: Tue, 28 Oct 2014 21:45:27 +0000 (+0100) Subject: Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=443a43dc46fbc1f6f15c74800e6be8a013732d4a;p=python Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param --- diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index ce08a448ab..4aafe38e3d 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -265,7 +265,7 @@ The module :mod:`socket` exports the following constants and functions: connection to ``www.python.org`` on port 80 (results may differ on your system if IPv6 isn't enabled):: - >>> socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP) + >>> socket.getaddrinfo("www.python.org", 80, 0, 0, socket.IPPROTO_TCP) [(2, 1, 6, '', ('82.94.164.162', 80)), (10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]