/third_party/python/Lib/test/test_importlib/import_/ |
D | test_path.py | 130 self.machinery.PathFinder.find_spec('whatever', [path])) 136 spec = self.machinery.PathFinder.find_spec('whatever', [path]) 150 self.machinery.PathFinder.find_spec('whatever', [path])) 156 spec = self.machinery.PathFinder.find_spec('whatever', [path]) 162 def find_spec(self, fullname, target=None): member in FinderTests.test_finder_with_find_spec.TestFinder 167 self.machinery.PathFinder.find_spec('whatever', [path])) 171 got = self.machinery.PathFinder.find_spec('whatever', [path]) 194 self.assertIsNone(self.machinery.PathFinder.find_spec('whatever')) 234 return self.machinery.PathFinder.find_spec(*args, **kwargs) 264 self.machinery.PathFinder.find_spec('importlib')
|
D | test___loader__.py | 12 def find_spec(self, fullname, path=None, target=None): member in SpecLoaderMock
|
D | test_api.py | 15 def find_spec(cls, fullname, path=None, target=None): member in BadSpecFinderLoader
|
D | test_meta_path.py | 29 first.find_spec = lambda self, fullname, path=None, parent=None: None
|
/third_party/python/Lib/test/test_importlib/extension/ |
D | test_finder.py | 14 def find_spec(self, fullname): member in FinderTests 19 return importer.find_spec(fullname) 22 self.assertTrue(self.find_spec(util.EXTENSIONS.name)) 34 self.assertIsNone(self.find_spec('asdfjkl;'))
|
D | test_case_sensitivity.py | 15 def find_spec(self): member in ExtensionModuleCaseSensitivityTest 22 return finder.find_spec(bad_name) 29 spec = self.find_spec() 37 spec = self.find_spec()
|
/third_party/python/Lib/test/test_importlib/ |
D | test_util.py | 406 def find_spec(name, path=None, target=None): return name, path, target member in FindSpecTests.FakeMetaFinder 417 found = self.util.find_spec(name) 429 found = self.util.find_spec(name) 439 self.util.find_spec(name) 448 found = self.util.find_spec(name) 461 self.util.find_spec(name) 468 self.util.find_spec(name)) 472 self.assertIsNone(self.util.find_spec('nevergoingtofindthismodule')) 479 spec = self.util.find_spec(fullname) 484 spec_again = self.util.find_spec(fullname) [all …]
|
D | test_threaded_import.py | 77 def find_spec(self, name, path=None, target=None): member in Finder 92 def find_spec(self, name, path=None, target=None): member in FlushingFinder 164 finder.find_spec('') 170 flushing_finder.find_spec('')
|
D | test_windows.py | 84 spec = self.machinery.WindowsRegistryFinder.find_spec('spam') 98 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module) 107 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module)
|
D | test_api.py | 180 def find_spec(name, path=None, target=None): member in FindLoaderPEP451Tests.FakeMetaFinder 443 if self.machinery.BuiltinImporter.find_spec(name): 445 elif self.machinery.FrozenImporter.find_spec(name): 453 if self.machinery.BuiltinImporter.find_spec(name): 455 elif self.machinery.FrozenImporter.find_spec(name):
|
D | test_abc.py | 359 def find_spec(self, fullname, path, target=None): member in MetaPathFinderFindModuleTests.finder.MetaPathSpecFinder 377 found = finder.find_spec('blah', 'blah', None) 384 found = finder.find_spec(name, path, None) 393 found = finder.find_spec('blah', None) 409 def find_spec(self, fullname, target=None): member in PathEntryFinderFindLoaderTests.finder.PathEntrySpecFinder
|
D | test_lazy.py | 45 def find_spec(self, name, path, target=None): member in TestingImporter
|
/third_party/python/Lib/test/test_importlib/builtin/ |
D | test_finder.py | 19 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name) 38 spec = self.machinery.BuiltinImporter.find_spec(name) 44 spec = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name,
|
/third_party/python/Lib/idlelib/ |
D | mainmenu.py | 11 from importlib.util import find_spec 118 if find_spec('turtledemo'):
|
/third_party/python/Lib/ |
D | pkgutil.py | 30 find_spec = finder.find_spec 37 return find_spec(name) 495 spec = importlib.util.find_spec(fullname) 566 spec = finder.find_spec(final_name) 621 spec = importlib.util.find_spec(package)
|
/third_party/python/Lib/importlib/ |
D | _bootstrap.py | 747 def find_spec(cls, fullname, path=None, target=None): member in BuiltinImporter 767 spec = cls.find_spec(fullname, path) 827 def find_spec(cls, fullname, path=None, target=None): member in FrozenImporter 939 find_spec = finder.find_spec 945 spec = find_spec(name, path, target) 1155 spec = BuiltinImporter.find_spec(name)
|
D | _bootstrap_external.py | 829 def find_spec(cls, fullname, path=None, target=None): member in WindowsRegistryFinder 854 spec = cls.find_spec(fullname, path) 1402 spec = finder.find_spec(fullname, target) 1423 def find_spec(cls, fullname, path=None, target=None): member in PathFinder 1457 spec = cls.find_spec(fullname, path) 1517 spec = self.find_spec(fullname) 1527 def find_spec(self, fullname, target=None): member in FileFinder
|
D | abc.py | 89 found = self.find_spec(fullname, path) 130 found = self.find_spec(fullname)
|
D | util.py | 73 def find_spec(name, package=None): function
|
/third_party/python/Doc/library/ |
D | zipimport.rst | 98 Use :meth:`find_spec` instead. 111 Use :meth:`find_spec` instead. 114 .. method:: find_spec(fullname, target=None) 116 An implementation of :meth:`importlib.abc.PathEntryFinder.find_spec`.
|
D | importlib.rst | 136 Use :func:`importlib.util.find_spec` instead. 261 Implement :meth:`MetaPathFinder.find_spec` or 262 :meth:`PathEntryFinder.find_spec` instead. 275 .. method:: find_spec(fullname, path, target=None) 297 If :meth:`find_spec` is defined, backwards-compatible functionality is 302 :exc:`NotImplementedError`. Can use :meth:`find_spec` to provide 306 Use :meth:`find_spec` instead. 330 .. method:: find_spec(fullname, target=None) 354 If :meth:`find_spec` is defined then backwards-compatible functionality is 359 Uses :meth:`find_spec` when available to provide functionality. [all …]
|
/third_party/python/Lib/test/ |
D | test_zipimport.py | 473 spec = zi.find_spec('spam') 481 spec = zi.find_spec(TESTPACK) 544 spec = zi.find_spec('spam2') 552 self.assertIsNone(zi.find_spec("name_does_not_matter")) 578 spec = zi.find_spec(TESTPACK2) 600 spec = zi2.find_spec(TESTMOD) 740 spec = zipimport.zipimporter(filename).find_spec(TESTMOD) 837 self.assertRaises(TypeError, z.find_spec, None) 846 self.assertIsNone(z.find_spec('abc'))
|
/third_party/python/Doc/reference/ |
D | import.rst | 278 pair: finder; find_spec 284 :meth:`~importlib.abc.MetaPathFinder.find_spec()` which takes three arguments: 295 The :meth:`~importlib.abc.MetaPathFinder.find_spec()` method of meta path 309 ``mpf.find_spec("foo", None, None)`` on each meta path finder (``mpf``). After 312 ``mpf.find_spec("foo.bar", foo.__path__, None)``. Once ``foo.bar`` has been 314 ``mpf.find_spec("foo.bar.baz", foo.bar.__path__, None)``. 326 The :meth:`~importlib.abc.MetaPathFinder.find_spec` method of meta path 330 ``find_spec()``. 427 :meth:`~importlib.abc.MetaPathFinder.find_spec` method would just return a 784 :meth:`~importlib.abc.MetaPathFinder.find_spec` protocol previously [all …]
|
/third_party/python/Lib/test/test_importlib/frozen/ |
D | test_finder.py | 16 return finder.find_spec(name, path)
|
/third_party/python/Lib/test/test_importlib/source/ |
D | test_case_sensitivity.py | 81 found = finder.find_spec(self.name)
|