Fix finally syntax

This commit is contained in:
Guido van Rossum 1992-04-17 16:32:53 +00:00
parent f8b7e926e0
commit 6f1f39188c
1 changed files with 6 additions and 5 deletions

View File

@ -76,11 +76,12 @@ def client(hostname):
# #
otheraddr = gethostbyname(hostname), PORT1 otheraddr = gethostbyname(hostname), PORT1
try: try:
ioloop(s, otheraddr) try:
except KeyboardInterrupt: ioloop(s, otheraddr)
log('client got intr') except KeyboardInterrupt:
except error: log('client got intr')
log('client got error') except error:
log('client got error')
finally: finally:
s.sendto('', otheraddr) s.sendto('', otheraddr)
log('client finished sending empty packet to server') log('client finished sending empty packet to server')