Use ExitStack instead of suppress as dummy context manager
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Unrud
					Unrud