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

Method _check_not_closed

Lib/compression/_common/_streams.py:12–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 """Mode-checking helper functions."""
11
12 def _check_not_closed(self):
13 if self.closed:
14 raise ValueError("I/O operation on closed file")
15
16 def _check_can_read(self):
17 if not self.readable():

Callers 15

tellMethod · 0.80
writeMethod · 0.80
readMethod · 0.80
read1Method · 0.80
readintoMethod · 0.80
readinto1Method · 0.80
peekMethod · 0.80
flushMethod · 0.80
seekMethod · 0.80
readlineMethod · 0.80
nameMethod · 0.80
filenoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected