'Read a line from the stream.
Args:
limit (int): Maximum number of bytes/characters to read.
Defaults to reading until EOF.
Returns:
bytes: Data read from the stream.'

def readline(self, limit=None):

    return self._read(limit, self.stream.readline)
