Searched refs:imp (Results 1 - 25 of 44) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dinfinite_reload.py6 import imp namespace
8 imp.reload(infinite_reload)
H A Dtest_imp.py1 import imp namespace
11 self.assertEqual(imp.lock_held(), expected,
12 "expected imp.lock_held() to be %r" % expected)
18 lock_held_at_start = imp.lock_held()
22 imp.acquire_lock()
26 imp.release_lock()
33 imp.release_lock()
42 """Very basic tests to make sure that imp.reload() operates just like
55 imp.reload(os)
60 imp
[all...]
H A Dtest_pdb.py4 import imp namespace
184 mod = imp.new_module('module_to_skip')
H A Dtest_threaded_import.py57 import imp namespace
58 if imp.lock_held():
H A Dtest_fork1.py4 import imp namespace
37 imp.acquire_lock()
42 imp.release_lock()
H A Dtest_compileall.py2 import imp namespace
31 compare = struct.pack('<4sl', imp.get_magic(), mtime)
52 self.recreation_check(struct.pack('<4sl', imp.get_magic(), 1))
H A Dtest_importhooks.py2 import imp namespace
70 mod = sys.modules.setdefault(fullname,imp.new_module(fullname))
118 file, filename, stuff = imp.find_module(subname, path)
132 mod = imp.load_module(fullname, self.file, self.filename, self.stuff)
183 imp.reload(reloadmodule)
H A Dtest_importlib.py2 import imp namespace
17 if name in ('sys', 'marshal', 'imp'):
82 module = imp.new_module(import_name)
H A Dtest_pkgutil.py4 import imp namespace
86 mod = sys.modules.setdefault(fullname, imp.new_module(fullname))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
H A Dfix_import.py42 import_from< 'from' imp=any 'import' ['('] any [')'] >
44 import_name< 'import' imp=any >
54 imp = results['imp']
61 while not hasattr(imp, 'value'):
62 imp = imp.children[0]
63 if self.probably_a_local_import(imp.value):
64 imp.value = u"." + imp
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A Dpkgutil.py8 import imp namespace
24 if magic != imp.get_magic():
186 file, filename, etc = imp.find_module(subname, path)
246 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
260 if mod_type==imp.PY_SOURCE:
262 elif mod_type in (imp.PY_COMPILED, imp.C_EXTENSION):
275 return self.etc[2]==imp.PKG_DIRECTORY
281 if mod_type==imp.PY_SOURCE:
284 elif mod_type==imp
[all...]
H A Drunpy.py13 import imp namespace
16 from imp import get_loader
28 self.module = imp.new_module(mod_name)
184 # as imp.get_importer instead of reimplementing it in Python?
207 importer = imp.NullImporter(path_name)
236 if isinstance(importer, imp.NullImporter):
H A Dcompileall.py17 import imp namespace
88 expect = struct.pack('<4sl', imp.get_magic(), mtime)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dpkgutil.py8 import imp namespace
24 if magic != imp.get_magic():
186 file, filename, etc = imp.find_module(subname, path)
238 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
252 if mod_type==imp.PY_SOURCE:
254 elif mod_type in (imp.PY_COMPILED, imp.C_EXTENSION):
267 return self.etc[2]==imp.PKG_DIRECTORY
273 if mod_type==imp.PY_SOURCE:
276 elif mod_type==imp
[all...]
H A Dihooks.py6 While the built-in module imp exports interfaces to the built-in
29 the imp module's find_module interface, while HookableModuleLoader
31 use the imp module's load_* interfaces to actually load the module.
57 import imp namespace
67 from imp import C_EXTENSION, PY_SOURCE, PY_COMPILED
68 from imp import C_BUILTIN, PY_FROZEN, PKG_DIRECTORY
108 The interface is a little more convenient than imp's:
130 return imp.find_module(name, [dir])
136 if imp.is_builtin(name):
138 if imp
[all...]
H A Dimputil.py17 import imp ### not available in Jython? namespace
80 for desc in imp.get_suffixes():
81 if desc[2] == imp.C_EXTENSION:
293 module = imp.new_module(fqname)
441 f.write(imp.get_magic())
511 if imp.is_builtin(modname):
512 type = imp.C_BUILTIN
513 elif imp.is_frozen(modname):
514 type = imp.PY_FROZEN
520 module = imp
[all...]
H A Drunpy.py13 import imp namespace
16 from imp import get_loader
28 self.module = imp.new_module(mod_name)
184 # as imp.get_importer instead of reimplementing it in Python?
207 importer = imp.NullImporter(path_name)
236 if isinstance(importer, imp.NullImporter):
H A Dpyclbr.py43 import imp namespace
136 f, fname, (_s, _m, ty) = imp.find_module(module, path)
138 f, fname, (_s, _m, ty) = imp.find_module(module, path + sys.path)
139 if ty == imp.PKG_DIRECTORY:
142 f, fname, (_s, _m, ty) = imp.find_module('__init__', [fname])
144 if ty != imp.PY_SOURCE:
H A Dpy_compile.py7 import imp namespace
13 MAGIC = imp.get_magic()
H A Dcompileall.py17 import imp namespace
88 expect = struct.pack('<4sl', imp.get_magic(), mtime)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/sax/
H A D__init__.py99 from org.python.core import imp namespace
100 drv_module = imp.importName(parser_name, 0, globals())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/sax/
H A D__init__.py99 from org.python.core import imp namespace
100 drv_module = imp.importName(parser_name, 0, globals())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
H A Dcheckpyc.py8 import imp namespace
18 MAGIC = imp.get_magic()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
H A Dfixer_util.py129 imp = Node(syms.import_from, children)
130 return imp
399 imp = node.children[1]
400 if imp.type == syms.dotted_as_names:
401 for child in imp.children:
407 elif imp.type == syms.dotted_as_name:
408 last = imp.children[-1]
411 elif imp.type == token.NAME and imp.value == name:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/i18n/
H A Dpygettext.py159 import imp namespace
274 _py_ext = [triple[0] for triple in imp.get_suffixes()
275 if triple[2] == imp.PY_SOURCE][0]
301 file, pathname, description = imp.find_module(parts[0], pathlist)
307 if description[2] == imp.PKG_DIRECTORY:
315 file, pathname, description = imp.find_module(
319 if description[2] not in [imp.PY_SOURCE, imp.PKG_DIRECTORY]:

Completed in 166 milliseconds

12