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

Method __exit__

src/urllib3/connectionpool.py:100–108  ·  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

98 return self
99
100 def __exit__(
101 self,
102 exc_type: type[BaseException] | None,
103 exc_val: BaseException | None,
104 exc_tb: TracebackType | None,
105 ) -> typing.Literal[False]:
106 self.close()
107 # Return False to re-raise any potential exceptions
108 return False
109
110 def close(self) -> None:
111 """

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected