/external/python/cpython3/Lib/importlib/ |
D | _bootstrap.py | 343 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 …]
|
D | util.py | 205 is_package = self.is_package(fullname) 209 if is_package:
|
D | _bootstrap_external.py | 679 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
|
D | abc.py | 208 def is_package(self, fullname): member in InspectLoader
|
/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 | util.py | 409 def create_package(file, path, is_package=True, contents=()): argument 453 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
|
/external/python/cpython3/Lib/tkinter/test/ |
D | runtktests.py | 15 def is_package(path): function 35 if is_package(dirpath) and filenames:
|
/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/test/ |
D | test_zipimport.py | 435 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.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/python/cpython3/Lib/ |
D | zipimport.py | 221 def is_package(self, fullname): member in zipimporter 279 if not self.is_package(fullname):
|
D | pkgutil.py | 313 def is_package(self, fullname): member in ImpLoader
|
/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 | 610 .. 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
|
D | zipimport.rst | 117 .. 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/scapy/scapy/modules/ |
D | six.py | 214 def is_package(self, fullname): member in _SixMetaPathImporter
|