'Return a list with all (following) lines. The sizehint parameter
is ignored in this implementation.'

def readlines(self, sizehint=(-1)):

    result = []
    while True:
        line = self.readline()
        if (not line):
            break
        result.append(line)
    return result
