MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/contextlib.py:622–624  ·  view source on GitHub ↗

Immediately unwind the context stack.

(self)

Source from the content-addressed store, hash-verified

620 return received_exc and suppressed_exc
621
622 def close(self):
623 """Immediately unwind the context stack."""
624 self.__exit__(None, None, None)
625
626
627# Inspired by discussions on https://bugs.python.org/issue29302

Callers 2

__exit__Method · 0.45
__exit__Method · 0.45

Calls 1

__exit__Method · 0.95

Tested by

no test coverage detected