'A utility function to break a list of lines upon the
first line that satisfied a condition.  The condition
argument should be a predicate function.'

def __linesUntil(self, lines, condition):

    i = (-1)
    for line in lines:
        i += 1
        if condition(line):
            break
    else:
        i += 1
    return (lines[:i], lines[i:])
