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

Method __exit__

IPython/utils/syspathcontext.py:55–62  ·  view source on GitHub ↗
(self, type, value, traceback)

Source from the content-addressed store, hash-verified

53 self.added = False
54
55 def __exit__(self, type, value, traceback):
56 if self.added:
57 try:
58 sys.path.remove(self.dir)
59 except ValueError:
60 pass
61 # Returning False causes any exceptions to be re-raised.
62 return False

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected