def readline(self, limit=-1):
# type: (int) -> bytes
"""Read and return one line from the stream.
If limit is specified, at most limit bytes will be read.
.. note::
Because the source that this reads from may not contain any OEL characters, we
read "lines" in chunks of length ``io.DEFAULT_BUFFER_SIZE``.
:type limit: int
:rtype: bytes
"""
return self.read(limit if limit > 0 else io.DEFAULT_BUFFER_SIZE)
评论列表
文章目录