mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix finally syntax
This commit is contained in:
parent
f8b7e926e0
commit
6f1f39188c
1 changed files with 6 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue