def __repr__(self):
        return "<Requirement(package={package}, version='{version}')>".format(
            package=self.package, version=self.version)
def matchfn(self, f):
        match = self._matcher
        return match(f) or any(map(match, util.dirs((f,))))