mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Endly, fix UnboundLocalError in telnetlib
This commit is contained in:
parent
f06576dc2b
commit
4605a00207
1 changed files with 2 additions and 1 deletions
|
@ -17,9 +17,10 @@ def server(evt, serv):
|
|||
conn, addr = serv.accept()
|
||||
except socket.timeout:
|
||||
pass
|
||||
else:
|
||||
conn.close()
|
||||
finally:
|
||||
serv.close()
|
||||
conn.close()
|
||||
evt.set()
|
||||
|
||||
class GeneralTests(TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue