Searched refs:mod_name (Results 1 – 8 of 8) sorted by relevance
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | runpy.py | 26 def __init__(self, mod_name): argument 27 self.mod_name = mod_name 28 self.module = imp.new_module(mod_name) 32 mod_name = self.mod_name 34 self._saved_module.append(sys.modules[mod_name]) 37 sys.modules[mod_name] = self.module 42 sys.modules[self.mod_name] = self._saved_module[0] 44 del sys.modules[self.mod_name] 63 mod_name=None, mod_fname=None, argument 68 run_globals.update(__name__ = mod_name, [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | runpy.py | 26 def __init__(self, mod_name): argument 27 self.mod_name = mod_name 28 self.module = imp.new_module(mod_name) 32 mod_name = self.mod_name 34 self._saved_module.append(sys.modules[mod_name]) 37 sys.modules[mod_name] = self.module 42 sys.modules[self.mod_name] = self._saved_module[0] 44 del sys.modules[self.mod_name] 63 mod_name=None, mod_fname=None, argument 68 run_globals.update(__name__ = mod_name, [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_runpy.py | 86 def expect_import_error(self, mod_name): argument 88 run_module(mod_name) 92 self.fail("Expected import error for " + mod_name) 133 mod_name = (pkg_name+".")*depth + mod_base 134 return pkg_dir, mod_fname, mod_name 136 def _del_pkg(self, top, depth, mod_name): argument 162 pkg_dir, mod_fname, mod_name = ( 164 forget(mod_name) 166 if verbose: print "Running from source:", mod_name 167 d1 = run_module(mod_name) # Read from source [all …]
|
D | test_zipimport.py | 227 mod_name = module_path_to_dotted_name(mod_path) 228 __import__(mod_name) 229 mod = sys.modules[mod_name] 235 self.assertEqual(loader.get_source(mod_name), None) 236 self.assertEqual(loader.get_filename(mod_name), mod.__file__) 271 mod_name = module_path_to_dotted_name(mod_path) 272 __import__(mod_name) 273 mod = sys.modules[mod_name] 279 self.assertEqual(loader.get_source(mod_name), None) 280 self.assertEqual(loader.get_filename(mod_name), mod.__file__)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/ |
D | fix_renames.py | 63 mod_name = results.get("module_name") 68 if mod_name and attr_name: 69 new_attr = unicode(LOOKUP[(mod_name.value, attr_name.value)])
|
D | fix_imports.py | 125 mod_name = import_mod.value 126 new_name = unicode(self.mapping[mod_name]) 131 self.replace[mod_name] = new_name
|
D | fix_import.py | 69 for mod_name in traverse_imports(imp): 70 if self.probably_a_local_import(mod_name):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
D | loader.py | 261 mod_name = os.path.splitext(os.path.basename(full_path))[0] 265 raise ImportError(msg % (mod_name, module_dir, expected_dir))
|