Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
tell
Method · 0.80
write
Method · 0.80
read
Method · 0.80
read1
Method · 0.80
readinto
Method · 0.80
readinto1
Method · 0.80
peek
Method · 0.80
flush
Method · 0.80
seek
Method · 0.80
readline
Method · 0.80
name
Method · 0.80
fileno
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected