MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / close

Method close

tools/python-3.11.9-amd64/Lib/_pyio.py:843–849  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

841 self.raw.flush()
842
843 def close(self):
844 if self.raw is not None and not self.closed:
845 try:
846 # may raise BlockingIOError or BrokenPipeError etc
847 self.flush()
848 finally:
849 self.raw.close()
850
851 def detach(self):
852 if self.raw is None:

Callers

nothing calls this directly

Calls 2

flushMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected