]> 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 9b21c8b87356d3f8a496cdbf0c2b09d366afda5a..86ae48488faa2409b35224fcf53c2bcd484b91ba 100644 (file)
@@ -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))]