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

Method _checkClosed

tools/python-3.11.9-amd64/Lib/_pyio.py:501–506  ·  view source on GitHub ↗

Internal: raise a ValueError if file is closed

(self, msg=None)

Source from the content-addressed store, hash-verified

499 return self.__closed
500
501 def _checkClosed(self, msg=None):
502 """Internal: raise a ValueError if file is closed
503 """
504 if self.closed:
505 raise ValueError("I/O operation on closed file."
506 if msg is None else msg)
507
508 ### Context manager ###
509

Callers 15

flushMethod · 0.95
__enter__Method · 0.95
isattyMethod · 0.95
__iter__Method · 0.95
writelinesMethod · 0.95
readintoMethod · 0.45
writeMethod · 0.45
filenoMethod · 0.45
truncateMethod · 0.45
readMethod · 0.45
readallMethod · 0.45
writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected