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

Method readline

Lib/lzma.py:222–230  ·  view source on GitHub ↗

Read a line of uncompressed bytes from the file. The terminating newline (if present) is retained. If size is non-negative, no more than size bytes will be read (in which case the line may be incomplete). Returns b'' if already at EOF.

(self, size=-1)

Source from the content-addressed store, hash-verified

220 return self._buffer.read1(size)
221
222 def readline(self, size=-1):
223 """Read a line of uncompressed bytes from the file.
224
225 The terminating newline (if present) is retained. If size is
226 non-negative, no more than size bytes will be read (in which
227 case the line may be incomplete). Returns b'' if already at EOF.
228 """
229 self._check_can_read()
230 return self._buffer.readline(size)
231
232 def write(self, data):
233 """Write a bytes object to the file.

Callers

nothing calls this directly

Calls 1

_check_can_readMethod · 0.80

Tested by

no test coverage detected