MCPcopy Create free account
hub / github.com/ipython/ipython / __exit__

Method __exit__

IPython/utils/capture.py:165–170  ·  view source on GitHub ↗
(self, exc_type, exc_value, traceback)

Source from the content-addressed store, hash-verified

163 return CapturedIO(stdout, stderr, outputs)
164
165 def __exit__(self, exc_type, exc_value, traceback):
166 sys.stdout = self.sys_stdout
167 sys.stderr = self.sys_stderr
168 if self.display and self.shell:
169 self.shell.display_pub = self.save_display_pub
170 sys.displayhook = self.save_display_hook

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected