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)
commit443a43dc46fbc1f6f15c74800e6be8a013732d4a (patch)
tree298ffd65fbfa705001f31d177c05fac79d715fdb /Doc
parente9e24b55a64e5df149d94d320a71bdd799d7d82b (diff)
downloadcpython-443a43dc46fbc1f6f15c74800e6be8a013732d4a.zip
cpython-443a43dc46fbc1f6f15c74800e6be8a013732d4a.tar.gz
cpython-443a43dc46fbc1f6f15c74800e6be8a013732d4a.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 ce08a44..4aafe38 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))]