Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/importlib/
D_bootstrap.py370 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 …]
Dutil.py205 is_package = self.is_package(fullname)
209 if is_package:
D_bootstrap_external.py624 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
Dabc.py208 def is_package(self, fullname): member in InspectLoader
Dresources.py339 if not zipimporter.is_package(fullname):
/external/python/cpython2/Lib/test/
Dtest_zipimport.py218 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/
Dtest_loader.py18 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/
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)
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 …]
Dtest_abc.py257 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 …]
Dtest_util.py99 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
Dutil.py398 def create_package(file, path, is_package=True, contents=()): argument
442 is_package=is_package)
/external/python/cpython2/Lib/lib-tk/test/
Druntktests.py17 def is_package(path): function
37 if is_package(dirpath) and filenames:
/external/python/cpython3/Lib/tkinter/test/
Druntktests.py15 def is_package(path): function
35 if is_package(dirpath) and filenames:
/external/python/cpython3/Lib/test/
Dtest_zipimport.py433 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.py72 for importer, module_name, is_package in (
/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_loader.py75 self.assertFalse(self.loader.is_package(util.EXTENSIONS.name))
79 self.assertTrue(loader.is_package('pkg'))
/external/python/cpython3/Lib/test/test_importlib/builtin/
Dtest_loader.py90 result = self.machinery.BuiltinImporter.is_package(util.BUILTINS.good_name)
/external/epid-sdk/
DSConstruct220 def is_package():
498 if is_package():
566 log_versions(DefaultEnvironment(), not is_package())
/external/python/cpython2/Lib/
Drunpy.py105 ispkg = loader.is_package(mod_name)
Dpkgutil.py271 def is_package(self, fullname): member in ImpLoader
/external/python/cpython3/Doc/library/
Dimportlib.rst607 .. 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
Dzipimport.rst114 .. method:: is_package(fullname)
/external/python/cpython3/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
/external/python/cpython2/Doc/library/
Dzipimport.rst116 .. method:: is_package(fullname)
/external/python/cpython3/Lib/
Dpkgutil.py313 def is_package(self, fullname): member in ImpLoader

12