mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
update demo scripts to use addr tuples for bind and connect
closes bug #111928
This commit is contained in:
parent
239f836c10
commit
a8d30d5d66
6 changed files with 9 additions and 9 deletions
|
@ -23,7 +23,7 @@ FINGER_PORT = 79
|
|||
#
|
||||
def finger(host, args):
|
||||
s = socket(AF_INET, SOCK_STREAM)
|
||||
s.connect(host, FINGER_PORT)
|
||||
s.connect((host, FINGER_PORT))
|
||||
s.send(args + '\n')
|
||||
while 1:
|
||||
buf = s.recv(1024)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue