]> granicus.if.org Git - python/commitdiff
Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo...
authorGeorg Brandl <georg@python.org>
Tue, 28 Oct 2014 21:45:27 +0000 (22:45 +0100)
committerGeorg Brandl <georg@python.org>
Tue, 28 Oct 2014 21:45:27 +0000 (22:45 +0100)
Doc/library/socket.rst

index ce08a448abe03243708ee3e0d35368b020e32f7e..4aafe38e3dfa126089131a1f81ab3685a658b399 100644 (file)
@@ -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))]