Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95517e4

Browse files
committed
merge with 3.4
2 parents 96d8368 + 2b07b0e commit 95517e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ The :mod:`socket` module also offers various network-related services:
466466
connection to ``www.python.org`` on port 80 (results may differ on your
467467
system if IPv6 isn't enabled)::
468468

469-
>>> socket.getaddrinfo("www.python.org", 80, proto=socket.SOL_TCP)
469+
>>> socket.getaddrinfo("www.python.org", 80, proto=socket.IPPROTO_TCP)
470470
[(2, 1, 6, '', ('82.94.164.162', 80)),
471471
(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]
472472

0 commit comments

Comments
 (0)