BaseServer doesn't have __exit__ in Python < 3.6
This commit is contained in:
parent
93c1581e21
commit
6b9fc870c2
@ -325,8 +325,7 @@ def serve(configuration, shutdown_socket=None):
|
||||
|
||||
with contextlib.ExitStack() as stack:
|
||||
for _, server in servers.items():
|
||||
# close server
|
||||
stack.push(server)
|
||||
stack.callback(server.server_close)
|
||||
while True:
|
||||
rlist, _, xlist = select.select(
|
||||
sockets, [], sockets, select_timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user