Lines Matching refs:spec
9 Adapt a package spec to adapt the underlying loader.
12 def __init__(self, spec, adapter=lambda spec: spec.loader):
13 self.spec = spec
14 self.loader = adapter(spec)
17 return getattr(self.spec, name)
25 def __init__(self, spec):
26 self.spec = spec
29 return CompatibilityFiles(self.spec)._native()
50 Path tied to a module spec.
54 def __init__(self, spec, reader):
55 self._spec = spec
116 Orphan path, not tied to a module spec or resource reader.
143 def __init__(self, spec):
144 self.spec = spec
149 return self.spec.loader.get_resource_reader(self.spec.name)
162 return CompatibilityFiles.SpecPath(self.spec, self._reader)
167 Construct a package spec with traversable compatibility
168 on the spec/loader/reader.