Home
last modified time | relevance | path

Searched refs:is_resource (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/
Dtest_resource.py14 self.assertTrue(resources.is_resource(self.data, 'binary.file'))
17 self.assertFalse(resources.is_resource(self.data, 'not-a-file'))
21 self.assertFalse(resources.is_resource(self.data, 'subdirectory'))
63 self.assertTrue(resources.is_resource(package, 'B'))
69 self.assertFalse(resources.is_resource(package, 'D'))
75 self.assertFalse(resources.is_resource(package, 'Z'))
93 self.assertFalse(resources.is_resource(module, 'A'))
119 resources.is_resource(submodule, 'binary.file'))
123 resources.is_resource('ziptestdata.subdirectory', 'binary.file'))
143 self.assertFalse(resources.is_resource(
Dtest_abc.py316 def is_resource(self, *args, **kwargs): member in ResourceReader
317 return super().is_resource(*args, **kwargs)
337 self.ins.is_resource('dummy_file')
Dutil.py417 def is_resource(self, path_): member in create_package.Reader
/external/python/cpython3/Lib/importlib/
Dresources.py218 def is_resource(package: Package, name: str) -> bool: function
227 return reader.is_resource(name)
293 def is_resource(self, name): member in _ZipImportResourceReader
Dabc.py378 def is_resource(self, name): member in ResourceReader
D_bootstrap_external.py932 if not self.is_resource(resource):
937 def is_resource(self, name): member in FileLoader
/external/tensorflow/tensorflow/core/framework/
Dvariable.proto28 bool is_resource = 5; field
/external/tensorflow/tensorflow/python/ops/
Dresource_variable_ops.py637 if not variable_def.is_resource:
939 var_def.is_resource = True
1529 if v.is_resource:
/external/python/cpython3/Doc/library/
Dimportlib.rst526 .. abstractmethod:: is_resource(name)
536 acceptable to return names for which :meth:`is_resource` would
919 .. function:: is_resource(package, name)