MCPcopy
hub / github.com/urllib3/urllib3 / __exit__

Method __exit__

src/urllib3/poolmanager.py:233–241  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc_val: BaseException | None,
        exc_tb: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

231 return self
232
233 def __exit__(
234 self,
235 exc_type: type[BaseException] | None,
236 exc_val: BaseException | None,
237 exc_tb: TracebackType | None,
238 ) -> typing.Literal[False]:
239 self.clear()
240 # Return False to re-raise any potential exceptions
241 return False
242
243 def _new_pool(
244 self,

Callers

nothing calls this directly

Calls 1

clearMethod · 0.95

Tested by

no test coverage detected