def __repr__(self):
        return "<Requirements({})>".format(self.filename.name or "")
def _compileddirpats(self):
        pat, matchfunc = _buildregexmatch(
            [("glob", p, "") for p in self._globdirpats], "$"
        )
        return matchfunc