Searched refs:is_resource (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Lib/test/test_importlib/ |
D | test_resource.py | 18 self.assertTrue(resources.is_resource(self.data, 'binary.file')) 21 self.assertFalse(resources.is_resource(self.data, 'not-a-file')) 25 self.assertFalse(resources.is_resource(self.data, 'subdirectory')) 67 self.assertTrue(resources.is_resource(package, 'B')) 73 self.assertFalse(resources.is_resource(package, 'D')) 79 self.assertFalse(resources.is_resource(package, 'Z')) 97 self.assertFalse(resources.is_resource(module, 'A')) 105 self.assertTrue(resources.is_resource(submodule, 'binary.file')) 109 resources.is_resource('ziptestdata.subdirectory', 'binary.file') 184 c = resources.is_resource('ziptestdata', 'binary.file') [all …]
|
D | test_abc.py | 319 def is_resource(self, *args, **kwargs): member in ResourceReader 320 return super().is_resource(*args, **kwargs) 340 self.ins.is_resource('dummy_file')
|
D | util.py | 441 def is_resource(self, path_): member in create_package.Reader
|
/third_party/python/Lib/importlib/ |
D | resources.py | 145 def is_resource(package: Package, name: str) -> bool: function 154 return reader.is_resource(name)
|
D | abc.py | 341 def is_resource(self, path: Text) -> bool: member in ResourceReader 438 def is_resource(self, path): member in TraversableResources
|
D | readers.py | 39 def is_resource(self, path): member in ZipReader
|
/third_party/python/Doc/library/ |
D | importlib.rst | 542 .. abstractmethod:: is_resource(name) 552 acceptable to return names for which :meth:`is_resource` would 1026 .. function:: is_resource(package, name)
|