mirror of https://github.com/python/cpython
Fix finally syntax
This commit is contained in:
parent
f8b7e926e0
commit
6f1f39188c
|
@ -76,11 +76,12 @@ def client(hostname):
|
|||
#
|
||||
otheraddr = gethostbyname(hostname), PORT1
|
||||
try:
|
||||
ioloop(s, otheraddr)
|
||||
except KeyboardInterrupt:
|
||||
log('client got intr')
|
||||
except error:
|
||||
log('client got error')
|
||||
try:
|
||||
ioloop(s, otheraddr)
|
||||
except KeyboardInterrupt:
|
||||
log('client got intr')
|
||||
except error:
|
||||
log('client got error')
|
||||
finally:
|
||||
s.sendto('', otheraddr)
|
||||
log('client finished sending empty packet to server')
|
||||
|
|
Loading…
Reference in New Issue