'Internal: read lines until EOF.'

def read_lines_to_eof(self):

    while 1:
        line = self.fp.readline(65536)
        if (not line):
            self.done = (-1)
            break
        self.__write(line)
