Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/importlib/
D_bootstrap.py343 is_package=None): argument
348 self.submodule_search_locations = [] if is_package else None
406 def spec_from_loader(name, loader, *, origin=None, is_package=None): argument
413 if is_package is None:
415 search = [] if is_package else None
419 if is_package is None:
422 is_package = loader.is_package(name)
424 is_package = None # aka, undefined
427 is_package = False
429 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.py679 is_package = loader.is_package(name)
683 if is_package:
766 def is_package(self, fullname): member in _LoaderBasics
982 if self.is_package(module):
1113 def is_package(self, fullname): member in ExtensionFileLoader
1209 def is_package(self, fullname): member in _NamespaceLoader
Dabc.py208 def is_package(self, fullname): member in InspectLoader
/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 …]
Dutil.py409 def create_package(file, path, is_package=True, contents=()): argument
453 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
/external/python/cpython3/Lib/tkinter/test/
Druntktests.py15 def is_package(path): function
35 if is_package(dirpath) and filenames:
/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/test/
Dtest_zipimport.py435 self.assertEqual(zi.is_package(TESTPACK), True)
440 self.assertFalse(find_mod.is_package('spam'))
451 self.assertEqual(zi.is_package(packdir + '__init__'), False)
452 self.assertEqual(zi.is_package(packdir + TESTPACK2), True)
453 self.assertEqual(zi.is_package(packdir2 + TESTMOD), False)
490 self.assertEqual(zi.is_package(TESTPACK2), True)
495 zi.is_package(TESTPACK2 + os.sep + '__init__'), False)
497 zi.is_package(TESTPACK2 + os.sep + TESTMOD), False)
504 self.assertFalse(zi2.is_package(TESTMOD))
733 self.assertRaises(TypeError, z.is_package, None)
[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/python/cpython3/Lib/
Dzipimport.py221 def is_package(self, fullname): member in zipimporter
279 if not self.is_package(fullname):
Dpkgutil.py313 def is_package(self, fullname): member in ImpLoader
/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.rst610 .. method:: is_package(fullname)
789 .. method:: is_package(fullname)
791 Concrete implementation of :meth:`InspectLoader.is_package`. A module
1169 .. method:: is_package(fullname)
1211 .. method:: is_package(fullname)
1265 .. method:: is_package(fullname)
1285 .. class:: ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None)
1498 is set based on what :meth:`importlib.abc.InspectLoader.is_package` returns
1544 .. function:: spec_from_loader(name, loader, *, origin=None, is_package=None)
1549 :meth:`InspectLoader.is_package`, to fill in any missing
Dzipimport.rst117 .. 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/scapy/scapy/modules/
Dsix.py214 def is_package(self, fullname): member in _SixMetaPathImporter

12