code: def has_contents_for(self, package):
          
  
          pfx = package + '.'
  
          for p in self.iter_distribution_names():
              if p == package or p.startswith(pfx):
                  return True
docs: Return true if 'exclude_package(package)' would do something