def __init__(self, dir, filepath): lines = dir.join(filepath).read().splitlines() LineMatcher.__init__(self, lines)