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

Method close

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

Source from the content-addressed store, hash-verified

2188 self._telling = self._seekable
2189
2190 def close(self):
2191 if self.buffer is not None and not self.closed:
2192 try:
2193 self.flush()
2194 finally:
2195 self.buffer.close()
2196
2197 @property
2198 def closed(self):

Callers

nothing calls this directly

Calls 2

flushMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected