'Read multiple lines.'

def readlines(self, sizehint=None):

    result = []
    for line in self:
        result.append(line)
        if (sizehint is not None):
            sizehint -= len(line)
            if (sizehint <= 0):
                break
    return result
