def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def _compileddirpats(self):
        pat, matchfunc = _buildregexmatch(
            [("glob", p, "") for p in self._globdirpats], "$"
        )
        return matchfunc