MCPcopy
hub / github.com/huggingface/transformers / __exit__

Method __exit__

src/transformers/testing_utils.py:1890–1892  ·  view source on GitHub ↗
(self, *exc)

Source from the content-addressed store, hash-verified

1888 return self
1889
1890 def __exit__(self, *exc):
1891 self.logger.removeHandler(self.sh)
1892 self.out = self.io.getvalue()
1893
1894 def __repr__(self):
1895 return f"captured: {self.out}\n"

Callers

nothing calls this directly

Calls 1

removeHandlerMethod · 0.80

Tested by

no test coverage detected