Browse Source

Use ExitStack instead of suppress as dummy context manager

Unrud 8 years ago
parent
commit
1576f9b7fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      radicale/__init__.py

+ 1 - 1
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