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

Method _check_can_read

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

Source from the content-addressed store, hash-verified

14 raise ValueError("I/O operation on closed file")
15
16 def _check_can_read(self):
17 if not self.readable():
18 raise io.UnsupportedOperation("File not open for reading")
19
20 def _check_can_write(self):
21 if not self.writable():

Callers 15

peekMethod · 0.80
readMethod · 0.80
read1Method · 0.80
readlineMethod · 0.80
peekMethod · 0.80
readMethod · 0.80
read1Method · 0.80
readintoMethod · 0.80
readlineMethod · 0.80
readlinesMethod · 0.80
readMethod · 0.80
read1Method · 0.80

Calls 1

readableMethod · 0.45

Tested by

no test coverage detected