/third_party/python/Lib/importlib/ |
D | _bootstrap.py | 358 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 …]
|
D | util.py | 208 is_package = self.is_package(fullname) 212 if is_package:
|
D | _bootstrap_external.py | 776 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
|
D | abc.py | 175 def is_package(self, fullname): member in InspectLoader
|
/third_party/python/Lib/test/test_importlib/frozen/ |
D | test_loader.py | 18 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/ |
D | test_spec.py | 18 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 …]
|
D | test_abc.py | 260 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 …]
|
D | util.py | 422 def create_package(file, path, is_package=True, contents=()): argument 466 is_package=is_package)
|
D | test_util.py | 100 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/ |
D | test_zipimport.py | 457 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/ |
D | zipimport.py | 170 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):
|
D | pkgutil.py | 315 def is_package(self, fullname): member in ImpLoader
|
D | modulefinder.py | 77 if spec.loader.is_package(name):
|
/third_party/grpc/src/python/grpcio_tests/tests/ |
D | _loader.py | 72 for importer, module_name, is_package in (
|
/third_party/python/Lib/test/test_importlib/extension/ |
D | test_loader.py | 81 self.assertFalse(self.loader.is_package(util.EXTENSIONS.name)) 85 self.assertTrue(loader.is_package('pkg'))
|
/third_party/python/Lib/test/test_importlib/builtin/ |
D | test_loader.py | 93 result = self.machinery.BuiltinImporter.is_package(util.BUILTINS.good_name)
|
/third_party/python/Doc/library/ |
D | importlib.rst | 623 .. 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
|
D | zipimport.rst | 153 .. method:: is_package(fullname)
|
/third_party/python/Lib/test/test_importlib/source/ |
D | test_file_loader.py | 41 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
|