From 1576f9b7fb904c6756cc1818ae25a7c73a60e72e Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 1 Aug 2017 17:14:26 +0200 Subject: [PATCH] Use ExitStack instead of suppress as dummy context manager --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index af7b9fe3..b2304063 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -118,7 +118,7 @@ class HTTPServer(wsgiref.simple_server.WSGIServer): self.max_connections) else: # use dummy context manager - self.connections_guard = contextlib.suppress() + self.connections_guard = contextlib.ExitStack() def get_request(self): # Set timeout for client