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

Method _check_can_write

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

Source from the content-addressed store, hash-verified

18 raise io.UnsupportedOperation("File not open for reading")
19
20 def _check_can_write(self):
21 if not self.writable():
22 raise io.UnsupportedOperation("File not open for writing")
23
24 def _check_can_seek(self):
25 if not self.readable():

Callers 3

writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80

Calls 1

writableMethod · 0.45

Tested by

no test coverage detected