def __repr__(self):
        return "<NamedRequirements({}{})>".format(
            self.name,
            ", filename='{}'".format(self.filename.name) if self.filename
            else "")
def matchfn(self, f):
        match = self._matcher
        return match(f) or any(map(match, util.dirs((f,))))