[Python-checkins] cpython (2.7): Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for

georg.brandl python-checkins at python.org
Tue Oct 28 22:48:01 CET 2014


https://hg.python.org/cpython/rev/999e72ed3fbc
changeset: 93202:999e72ed3fbc
branch: 2.7
parent: 93195:18f346abdfbe
user: Georg Brandl <georg at python.org>
date: Tue Oct 28 22:45:27 2014 +0100
summary:
 Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param
files:
 Doc/library/socket.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -265,7 +265,7 @@
 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))]
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /