summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-28 21:45:27 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-28 21:45:27 (GMT)
commit2b07b0e8683b248b82d09bf1f0dbd3bd09e7af72 (patch)
treed32a900ada712871b9d60507054ed01aad9dca65 /Doc
parentc943e793849ad909408358362ddbebacae54ebee (diff)
downloadcpython-2b07b0e8683b248b82d09bf1f0dbd3bd09e7af72.zip
cpython-2b07b0e8683b248b82d09bf1f0dbd3bd09e7af72.tar.gz
cpython-2b07b0e8683b248b82d09bf1f0dbd3bd09e7af72.tar.bz2
Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 9b21c8b..86ae484 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -464,7 +464,7 @@ The :mod:`socket` module also offers various network-related services:
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, proto=socket.SOL_TCP)
+ >>> socket.getaddrinfo("www.python.org", 80, proto=socket.IPPROTO_TCP)
[(2, 1, 6, '', ('82.94.164.162', 80)),
(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]