'Read and return the list of all logical lines remaining in the
current file.'

def readlines(self):

    lines = []
    while True:
        line = self.readline()
        if (line is None):
            return lines
        lines.append(line)
