'Internal: skip lines until outer boundary if defined.'

def skip_lines(self):

    if ((not self.outerboundary) or self.done):
        return
    next = ('--' + self.outerboundary)
    last = (next + '--')
    last_line_lfend = True
    while 1:
        line = self.fp.readline(65536)
        if (not line):
            self.done = (-1)
            break
        if ((line[:2] == '--') and last_line_lfend):
            strippedline = line.strip()
            if (strippedline == next):
                break
            if (strippedline == last):
                self.done = 1
                break
        last_line_lfend = line.endswith('\n')
