1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Cosmetic changes

This commit is contained in:
Unrud 2020-02-19 09:50:00 +01:00
parent cc22927353
commit 3b99d64935
2 changed files with 4 additions and 4 deletions

View file

@ -84,7 +84,7 @@ else:
class ParallelHTTPServer(ParallelizationMixIn,
wsgiref.simple_server.WSGIServer):
# wait for child processes/threads
# Python 3.6: Wait for child processes/threads (Default in Python >= 3.7)
_block_on_close = True
def __init__(self, configuration, address_family,
@ -315,9 +315,9 @@ def serve(configuration, shutdown_socket=None):
select_timeout = 1.0
logger.info("Radicale server ready")
with contextlib.ExitStack() as stack:
with contextlib.ExitStack() as exit_stack:
for _, server in servers.items():
stack.callback(server.server_close)
exit_stack.callback(server.server_close)
while True:
rlist, _, xlist = select.select(
sockets, [], sockets, select_timeout)