From 443a43dc46fbc1f6f15c74800e6be8a013732d4a Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 28 Oct 2014 22:45:27 +0100 Subject: [PATCH] Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param --- Doc/library/socket.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))] -- 2.50.1