def readlines(self, hint=None):
        """Return a list of lines from the stream.

        hint can be specified to control the number of lines read: no more
        lines will be read if the total size (in bytes/characters) of all
        lines so far exceeds hint.
        """
        if hint is None:
            hint = -1
        if not isinstance(hint, (int, long)):
            raise TypeError("hint must be an integer")
        if hint <= 0:
            return list(self)
        n = 0
        lines = []
        for line in self:
            lines.append(line)
            n += len(line)
            if n >= hint:
                break
        return lines
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/io.py/IOBase.readlines/original