/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test_relative_imports.py | 81 self.__import__('pkg') # For __import__(). 82 module = self.__import__('', global_, fromlist=['mod2'], level=1) 93 self.__import__('pkg') # For __import__(). 94 module = self.__import__('mod2', global_, fromlist=['attr'], 106 self.__import__('pkg') # For __import__(). 107 module = self.__import__('', global_, fromlist=['module'], 119 self.__import__('pkg') # For __import__(). 120 module = self.__import__('', global_, fromlist=['attr'], level=1) 131 module = self.__import__('', global_, fromlist=['subpkg2'], 147 self.__import__(globals_[0]['__package__']) [all …]
|
D | test___package__.py | 40 self.__import__('pkg.fake') 41 module = self.__import__('', 85 self.__import__('', globals, {}, ['relimport'], 1) 90 self.__import__('', globals, {}, ['relimport'], 1) 104 ) = util.test_both(Using__package__PEP302, __import__=util.__import__) 113 ) = util.test_both(Using__package__PEP451, __import__=util.__import__) 128 __import__ = util.__import__['Source'] variable in Setting__package__ 135 module = self.__import__('top_level') 143 module = self.__import__('pkg') 151 pkg = self.__import__('pkg.mod')
|
D | test_fromlist.py | 21 module = self.__import__('pkg.module') 28 module = self.__import__('pkg.module', fromlist=['attr']) 34 ) = util.test_both(ReturnValue, __import__=util.__import__) 56 module = self.__import__('module', fromlist=['attr']) 63 module = self.__import__('module', fromlist=['non_existent']) 71 module = self.__import__('pkg', fromlist=['module']) 86 self.__import__('pkg', fromlist=['mod']) 92 module = self.__import__('pkg.mod', fromlist=['']) 100 module = self.__import__('pkg', fromlist=fromlist) 118 module = self.__import__('pkg', fromlist=['module2', '*']) [all …]
|
D | test_packages.py | 14 module = self.__import__('pkg.module') 21 self.__import__('pkg.module') 33 self.__import__('pkg') 37 self.__import__('pkg.module') 52 self.__import__('pkg') 55 self.__import__('pkg.module') 72 self.__import__('pkg.subpkg') 75 self.__import__('pkg.subpkg.module') 84 self.__import__('sys.no_submodules_here') 99 submodule = self.__import__(subname) [all …]
|
D | test_caching.py | 29 module = self.__import__('some_module') 38 self.__import__(name) 44 ) = util.test_both(UseCache, __import__=util.__import__) 51 __import__ = util.__import__['Source'] variable in ImportlibUseCache 68 module = self.__import__('module') 76 module = self.__import__('pkg.module') 86 module = self.__import__('pkg', fromlist=['module'])
|
D | test_meta_path.py | 22 self.assertIs(self.__import__(mod), first.modules[mod]) 31 self.assertIs(self.__import__(mod_name), second.modules[mod_name]) 51 ) = util.test_both(CallingOrder, __import__=util.__import__) 76 self.__import__(mod_name) 94 self.__import__(mod_name) 111 ) = util.test_both(CallSignaturePEP302, __import__=util.__import__) 121 ) = util.test_both(CallSignaturePEP451, __import__=util.__import__)
|
D | test_api.py | 53 self.__import__(42) 60 self.__import__('os', globals(), level=-1) 70 self.__import__(PKG_NAME, fromlist=['not here']) 82 self.__import__(PKG_NAME, 92 ) = util.test_both(OldAPITests, __import__=util.__import__) 101 ) = util.test_both(SpecAPITests, __import__=util.__import__)
|
D | test___loader__.py | 26 module = self.__import__('blah') 32 ) = util.test_both(SpecLoaderAttributeTests, __import__=util.__import__) 56 module = self.__import__('blah') 65 returned_module = self.__import__('blah') 71 ) = util.test_both(LoaderAttributeTests, __import__=util.__import__)
|
/external/python/cpython3/Lib/test/test_import/ |
D | __init__.py | 117 mod = __import__(TESTFN) 192 self.assertRaises(ZeroDivisionError, __import__, TESTFN) 218 mod = __import__(TESTFN) 257 mod = __import__(TESTFN) 263 mod = __import__(TESTFN) 280 __import__(path) 312 __import__(TESTFN) 321 __import__('http', fromlist=['blah']) 364 module = __import__(name) 383 __import__(name) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_import.py | 79 mod = __import__(TESTFN) 123 __import__(TESTFN) 155 m1 = __import__(TESTFN) 162 m2 = __import__(TESTFN) 167 m3 = __import__(TESTFN) 231 self.assertRaises(ZeroDivisionError, __import__, TESTFN) 247 mod = __import__(TESTFN) 304 self.assertRaises(ImportError, __import__, "site-packages") 309 __import__(path) 353 __import__(TESTFN) [all …]
|
D | test_pkgimport.py | 53 try: __import__(self.module_name) 67 try: __import__(self.module_name) 74 module = __import__(self.module_name).foo
|
/external/protobuf/python/google/ |
D | __init__.py | 2 __import__('pkg_resources').declare_namespace(__name__) 4 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
/external/protobuf/python/google/protobuf/pyext/ |
D | __init__.py | 2 __import__('pkg_resources').declare_namespace(__name__) 4 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
/external/protobuf/python/google/protobuf/ |
D | __init__.py | 37 __import__('pkg_resources').declare_namespace(__name__) 39 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
/external/python/cpython3/Lib/test/ |
D | test_pkgimport.py | 54 try: __import__(self.module_name) 68 try: __import__(self.module_name) 75 module = __import__(self.module_name).foo
|
D | test_runpy.py | 314 __import__(mod_name) 355 __import__(mod_name) 414 __import__(mod_name) 477 __import__(mod_name) 489 __import__(package) 495 __import__(mod_name)
|
/external/python/cpython2/Lib/ |
D | anydbm.py | 45 _mod = __import__(_name) 84 mod = __import__(result)
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 171 __builtins__.__import__ = import_ 196 len(benchmarks) * seconds * repeat, __import__)) 240 import_ = __import__ 242 import_ = importlib.__import__
|
/external/python/cpython2/Doc/library/ |
D | importlib.rst | 1 :mod:`importlib` -- Convenience wrappers for :func:`__import__` 5 :synopsis: Convenience wrappers for __import__
|
/external/python/cpython2/Doc/c-api/ |
D | import.rst | 52 .. index:: builtin: __import__ 55 function :func:`__import__`, as the standard :func:`__import__` function calls 60 still be created in this case). Like for :func:`__import__`, the return value 75 function :func:`__import__`, as the standard :func:`__import__` function calls 79 or *NULL* with an exception set on failure. Like for :func:`__import__`, 93 It invokes the :func:`__import__` function from the ``__builtins__`` of the
|
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
D | main.py | 222 lexerMod = __import__(options.lexerClass) 284 lexerMod = __import__(options.lexerClass) 286 parserMod = __import__(options.parserClass)
|
/external/autotest/client/ |
D | setup_modules.py | 57 module = __import__(name) 70 from_module = __import__(from_where, globals(), locals(), [module])
|
/external/python/cpython3/Doc/c-api/ |
D | import.rst | 44 .. index:: builtin: __import__ 47 function :func:`__import__`. 51 :func:`__import__`, the return value when a submodule of a package was 62 function :func:`__import__`, as the standard :func:`__import__` function calls 66 or *NULL* with an exception set on failure. Like for :func:`__import__`, 85 invokes the :func:`__import__` function from the ``__builtins__`` of the
|
/external/python/cpython2/Lib/unittest/ |
D | loader.py | 91 module = __import__('.'.join(parts_copy)) 192 __import__(start_dir) 232 __import__(name)
|
/external/autotest/tko/migrations/ |
D | 016_modify_perf_view_2.py | 1 prev_migration = __import__('015_support_graphing_interface')
|