def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def _compileddirpats(self):
        pat, matchfunc = _buildregexmatch(
            [("glob", p, "") for p in self._globdirpats], "$"
        )
        return matchfunc