def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def _compiledpats(self):
        pat, matchfunc = _buildregexmatch(self._kindpats, "")
        return matchfunc