Home
last modified time | relevance | path

Searched refs:is_package (Results 1 – 19 of 19) sorted by relevance

/third_party/python/Lib/importlib/
D_bootstrap.py358 is_package=None): argument
363 self.submodule_search_locations = [] if is_package else None
421 def spec_from_loader(name, loader, *, origin=None, is_package=None): argument
428 if is_package is None:
430 search = [] if is_package else None
434 if is_package is None:
437 is_package = loader.is_package(name)
439 is_package = None # aka, undefined
442 is_package = False
444 return ModuleSpec(name, loader, origin=origin, is_package=is_package)
[all …]
Dutil.py208 is_package = self.is_package(fullname)
212 if is_package:
D_bootstrap_external.py776 is_package = loader.is_package(name)
780 if is_package:
866 def is_package(self, fullname): member in _LoaderBasics
1188 def is_package(self, fullname): member in ExtensionFileLoader
1286 def is_package(self, fullname): member in _NamespaceLoader
Dabc.py175 def is_package(self, fullname): member in InspectLoader
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py18 is_package=self.machinery.FrozenImporter.is_package(name))
203 for name, is_package in test_for:
204 result = self.machinery.FrozenImporter.is_package(name)
205 self.assertEqual(bool(result), is_package)
/third_party/python/Lib/test/test_importlib/
Dtest_spec.py18 def __init__(self, path=None, is_package=None): argument
20 self.package = is_package
101 is_package=False)
113 is_package=True)
177 is_package=True)
530 def is_package(self, name): member in FactoryTests.test_spec_from_loader_default_with_bad_is_package.Loader
558 is_package=False)
570 is_package=True)
583 origin=origin, is_package=True)
594 loader = TestLoader(is_package=False)
[all …]
Dtest_abc.py260 def is_package(self, fullname): member in InspectLoader
261 return super().is_package(fullname)
276 self.ins.is_package('blah')
458 def is_package(self, fullname): member in LoaderLoadModuleTests.loader.SpecLoader
769 def setUp(self, *, is_package=True, **kwargs): argument
771 if is_package:
828 self.setUp(is_package=False)
829 self.assertFalse(self.loader.is_package(self.name))
830 self.setUp(is_package=True)
831 self.assertTrue(self.loader.is_package(self.name))
[all …]
Dutil.py422 def create_package(file, path, is_package=True, contents=()): argument
466 is_package=is_package)
Dtest_util.py100 spec = self.machinery.ModuleSpec('test', object(), is_package=True)
166 def is_package(self, name): member in ModuleForLoaderTests.test_reload.FakeLoader
224 def __init__(self, is_package): argument
225 self._pkg = is_package
226 def is_package(self, name): member in ModuleForLoaderTests.test_attributes_set.FakeLoader
/third_party/python/Lib/test/
Dtest_zipimport.py457 self.assertTrue(zi.is_package(TESTPACK))
465 self.assertFalse(find_mod.is_package('spam'))
476 self.assertFalse(spec.loader.is_package('spam'))
490 self.assertFalse(zi.is_package(packdir + '__init__'))
491 self.assertTrue(zi.is_package(packdir + TESTPACK2))
492 self.assertFalse(zi.is_package(packdir2 + TESTMOD))
571 self.assertTrue(zi.is_package(TESTPACK2))
583 self.assertFalse(zi.is_package(TESTPACK2 + os.sep + '__init__'))
584 self.assertFalse(zi.is_package(TESTPACK2 + os.sep + TESTMOD))
594 self.assertFalse(zi2.is_package(TESTMOD))
[all …]
/third_party/python/Lib/
Dzipimport.py170 return _bootstrap.spec_from_loader(fullname, self, is_package=module_info)
184 is_package=True)
259 def is_package(self, fullname): member in zipimporter
322 if not self.is_package(fullname):
Dpkgutil.py315 def is_package(self, fullname): member in ImpLoader
Dmodulefinder.py77 if spec.loader.is_package(name):
/third_party/grpc/src/python/grpcio_tests/tests/
D_loader.py72 for importer, module_name, is_package in (
/third_party/python/Lib/test/test_importlib/extension/
Dtest_loader.py81 self.assertFalse(self.loader.is_package(util.EXTENSIONS.name))
85 self.assertTrue(loader.is_package('pkg'))
/third_party/python/Lib/test/test_importlib/builtin/
Dtest_loader.py93 result = self.machinery.BuiltinImporter.is_package(util.BUILTINS.good_name)
/third_party/python/Doc/library/
Dimportlib.rst623 .. method:: is_package(fullname)
802 .. method:: is_package(fullname)
804 Concrete implementation of :meth:`InspectLoader.is_package`. A module
1280 .. method:: is_package(fullname)
1322 .. method:: is_package(fullname)
1376 .. method:: is_package(fullname)
1396 .. class:: ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None)
1615 is set based on what :meth:`importlib.abc.InspectLoader.is_package` returns
1661 .. function:: spec_from_loader(name, loader, *, origin=None, is_package=None)
1666 :meth:`InspectLoader.is_package`, to fill in any missing
Dzipimport.rst153 .. method:: is_package(fullname)
/third_party/python/Lib/test/test_importlib/source/
Dtest_file_loader.py41 def is_package(self, _): return False member in SimpleTest.test_load_module_API.Tester
54 def is_package(self, _): pass member in SimpleTest.test_get_filename_API.Tester