mirror of https://github.com/python/cpython.git
Endly, fix UnboundLocalError in telnetlib
This commit is contained in:
parent
f06576dc2b
commit
4605a00207
|
@ -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…
Reference in New Issue