mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Use ExitStack instead of suppress as dummy context manager
This commit is contained in:
parent
d72455fff6
commit
1576f9b7fb
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class HTTPServer(wsgiref.simple_server.WSGIServer):
|
||||||
self.max_connections)
|
self.max_connections)
|
||||||
else:
|
else:
|
||||||
# use dummy context manager
|
# use dummy context manager
|
||||||
self.connections_guard = contextlib.suppress()
|
self.connections_guard = contextlib.ExitStack()
|
||||||
|
|
||||||
def get_request(self):
|
def get_request(self):
|
||||||
# Set timeout for client
|
# Set timeout for client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue