/external/python/cpython3/Lib/importlib/ |
D | _bootstrap.py | 370 is_package=None): argument 375 self.submodule_search_locations = [] if is_package else None 433 def spec_from_loader(name, loader, *, origin=None, is_package=None): argument 440 if is_package is None: 442 search = [] if is_package else None 446 if is_package is None: 449 is_package = loader.is_package(name) 451 is_package = None # aka, undefined 454 is_package = False 456 return ModuleSpec(name, loader, origin=origin, is_package=is_package) [all …]
|
D | util.py | 205 is_package = self.is_package(fullname) 209 if is_package:
|
D | _bootstrap_external.py | 624 is_package = loader.is_package(name) 628 if is_package: 711 def is_package(self, fullname): member in _LoaderBasics 923 if self.is_package(module): 1054 def is_package(self, fullname): member in ExtensionFileLoader 1147 def is_package(self, fullname): member in _NamespaceLoader
|
D | abc.py | 208 def is_package(self, fullname): member in InspectLoader
|
D | resources.py | 339 if not zipimporter.is_package(fullname):
|
/external/python/cpython2/Lib/test/ |
D | test_zipimport.py | 218 self.assertEqual(zi.is_package(TESTPACK), True) 222 self.assertEqual(zi.is_package(packdir + '__init__'), False) 223 self.assertEqual(zi.is_package(packdir + TESTPACK2), True) 224 self.assertEqual(zi.is_package(packdir2 + TESTMOD), False) 263 self.assertEqual(zi.is_package(TESTPACK2), True) 267 self.assertEqual(zi.is_package(TESTPACK2 + os.sep + '__init__'), False) 268 self.assertEqual(zi.is_package(TESTPACK2 + os.sep + TESTMOD), False) 444 self.assertRaises(TypeError, z.is_package, None) 456 self.assertRaises(error, z.is_package, 'abc')
|
/external/python/cpython3/Lib/test/test_importlib/frozen/ |
D | test_loader.py | 18 is_package=self.machinery.FrozenImporter.is_package(name)) 207 for name, is_package in test_for: 208 result = self.machinery.FrozenImporter.is_package(name) 209 self.assertEqual(bool(result), is_package)
|
/external/python/cpython3/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) 522 def is_package(self, name): member in FactoryTests.test_spec_from_loader_default_with_bad_is_package.Loader 550 is_package=False) 562 is_package=True) 575 origin=origin, is_package=True) 586 loader = TestLoader(is_package=False) [all …]
|
D | test_abc.py | 257 def is_package(self, fullname): member in InspectLoader 258 return super().is_package(fullname) 273 self.ins.is_package('blah') 440 def is_package(self, fullname): member in LoaderLoadModuleTests.loader.SpecLoader 747 def setUp(self, *, is_package=True, **kwargs): argument 749 if is_package: 806 self.setUp(is_package=False) 807 self.assertFalse(self.loader.is_package(self.name)) 808 self.setUp(is_package=True) 809 self.assertTrue(self.loader.is_package(self.name)) [all …]
|
D | test_util.py | 99 spec = self.machinery.ModuleSpec('test', object(), is_package=True) 165 def is_package(self, name): member in ModuleForLoaderTests.test_reload.FakeLoader 223 def __init__(self, is_package): argument 224 self._pkg = is_package 225 def is_package(self, name): member in ModuleForLoaderTests.test_attributes_set.FakeLoader
|
D | util.py | 398 def create_package(file, path, is_package=True, contents=()): argument 442 is_package=is_package)
|
/external/python/cpython2/Lib/lib-tk/test/ |
D | runtktests.py | 17 def is_package(path): function 37 if is_package(dirpath) and filenames:
|
/external/python/cpython3/Lib/tkinter/test/ |
D | runtktests.py | 15 def is_package(path): function 35 if is_package(dirpath) and filenames:
|
/external/python/cpython3/Lib/test/ |
D | test_zipimport.py | 433 self.assertEqual(zi.is_package(TESTPACK), True) 438 self.assertFalse(find_mod.is_package('spam')) 449 self.assertEqual(zi.is_package(packdir + '__init__'), False) 450 self.assertEqual(zi.is_package(packdir + TESTPACK2), True) 451 self.assertEqual(zi.is_package(packdir2 + TESTMOD), False) 492 self.assertEqual(zi.is_package(TESTPACK2), True) 497 zi.is_package(TESTPACK2 + os.sep + '__init__'), False) 499 zi.is_package(TESTPACK2 + os.sep + TESTMOD), False) 506 self.assertFalse(zi2.is_package(TESTMOD)) 694 self.assertRaises(ValueError, zi.is_package, 'foo') [all …]
|
/external/grpc-grpc/src/python/grpcio_tests/tests/ |
D | _loader.py | 72 for importer, module_name, is_package in (
|
/external/python/cpython3/Lib/test/test_importlib/extension/ |
D | test_loader.py | 75 self.assertFalse(self.loader.is_package(util.EXTENSIONS.name)) 79 self.assertTrue(loader.is_package('pkg'))
|
/external/python/cpython3/Lib/test/test_importlib/builtin/ |
D | test_loader.py | 90 result = self.machinery.BuiltinImporter.is_package(util.BUILTINS.good_name)
|
/external/epid-sdk/ |
D | SConstruct | 220 def is_package(): 498 if is_package(): 566 log_versions(DefaultEnvironment(), not is_package())
|
/external/python/cpython2/Lib/ |
D | runpy.py | 105 ispkg = loader.is_package(mod_name)
|
D | pkgutil.py | 271 def is_package(self, fullname): member in ImpLoader
|
/external/python/cpython3/Doc/library/ |
D | importlib.rst | 607 .. method:: is_package(fullname) 786 .. method:: is_package(fullname) 788 Concrete implementation of :meth:`InspectLoader.is_package`. A module 1166 .. method:: is_package(fullname) 1208 .. method:: is_package(fullname) 1262 .. method:: is_package(fullname) 1282 .. class:: ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None) 1495 is set based on what :meth:`importlib.abc.InspectLoader.is_package` returns 1541 .. function:: spec_from_loader(name, loader, *, origin=None, is_package=None) 1546 :meth:`InspectLoader.is_package`, to fill in any missing
|
D | zipimport.rst | 114 .. method:: is_package(fullname)
|
/external/python/cpython3/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
|
/external/python/cpython2/Doc/library/ |
D | zipimport.rst | 116 .. method:: is_package(fullname)
|
/external/python/cpython3/Lib/ |
D | pkgutil.py | 313 def is_package(self, fullname): member in ImpLoader
|