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
|
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')
|
||||||
|
|
Loading…
Reference in New Issue