Home
last modified time | relevance | path

Searched refs:modname (Results 1 – 25 of 45) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest___all__.py24 def check_all(self, modname): argument
29 exec "import %s" % modname in names
34 raise FailedImport(modname)
35 if not hasattr(sys.modules[modname], "__all__"):
36 raise NoAll(modname)
39 exec "from %s import *" % modname in names
43 modname, e.__class__.__name__, e))
47 all = set(sys.modules[modname].__all__)
89 for path, modname in self.walk_modules(lib_dir, ""):
90 m = modname
[all …]
Dtest_pydoc.py266 modname = 'testmod_xyzzy'
271 ('i_am_not_here.{}'.format(modname), 'i_am_not_here.{}'.format(modname)),
272 ('test.{}'.format(modname), modname),
285 fullmodname = os.path.join(TESTFN, modname)
292 result = run_pydoc(modname)
294 forget(modname)
295 expected = badimport_pattern % (modname, expectedinmsg)
Dtest_trace.py23 modname = os.path.splitext(os.path.basename(__file__))[0]
24 return fix_ext_py(__file__), modname
316 modname = 'test.tracedmodules.testmod'
318 if modname in sys.modules:
319 del sys.modules[modname]
331 modname = trace.fullmodname(sys.modules[modname].__file__)
332 self.assertIn(modname, coverage)
333 self.assertEqual(coverage[modname], (5, 100))
Dtest_support.py92 for modname in list(sys.modules):
93 if modname == name or modname.startswith(name + '.'):
94 orig_modules[modname] = sys.modules[modname]
95 del sys.modules[modname]
196 def forget(modname): argument
199 unload(modname)
201 unlink(os.path.join(dirname, modname + os.extsep + 'pyc'))
205 unlink(os.path.join(dirname, modname + os.extsep + 'pyo'))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
D__init__.py93 for modname in modnames:
94 if not modname or '.' in modname:
99 mod = __import__('encodings.' + modname, fromlist=_import_tail,
151 _aliases[alias] = modname
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
D__init__.py93 for modname in modnames:
94 if not modname or '.' in modname:
99 mod = __import__('encodings.' + modname, fromlist=_import_tail,
151 _aliases[alias] = modname
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
D__init__.py28 modname = "distutils.tests." + fn[:-3]
29 __import__(modname)
30 module = sys.modules[modname]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
D__init__.py13 modname = "unittest.test." + fn[:-3]
14 __import__(modname)
15 module = sys.modules[modname]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dpkgutil.py205 modname = inspect.getmodulename(fn)
206 if modname=='__init__' or modname in yielded:
212 if not modname and os.path.isdir(path) and '.' not in fn:
213 modname = fn
227 if modname and '.' not in modname:
228 yielded[modname] = 1
229 yield prefix + modname, ispkg
352 modname = inspect.getmodulename(fn[0])
353 if modname=='__init__':
356 if modname and '.' not in modname and modname not in yielded:
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpkgutil.py202 modname = inspect.getmodulename(fn)
203 if modname=='__init__' or modname in yielded:
209 if not modname and os.path.isdir(path) and '.' not in fn:
210 modname = fn
219 if modname and '.' not in modname:
220 yielded[modname] = 1
221 yield prefix + modname, ispkg
344 modname = inspect.getmodulename(fn[0])
345 if modname=='__init__':
348 if modname and '.' not in modname and modname not in yielded:
[all …]
Dimputil.py263 def _import_one(self, parent, modname, fqname): argument
273 result = self.get_code(parent, modname, fqname)
281 setattr(parent, modname, module)
370 def get_code(self, parent, modname, fqname): argument
505 def get_code(self, parent, modname, fqname): argument
511 if imp.is_builtin(modname):
513 elif imp.is_frozen(modname):
520 module = imp.load_module(modname, None, modname, ('', '', type))
542 def get_code(self, parent, modname, fqname): argument
550 code = self._import_pathname(_os_path_join(submodule_path, modname), fqname)
[all …]
Dpydoc.py95 def classname(object, modname): argument
98 if object.__module__ != modname:
499 def classlink(self, object, modname): argument
504 module.__name__, name, classname(object, modname))
505 return classname(object, modname)
564 def formattree(self, tree, modname, parent=None): argument
571 result = result + self.classlink(c, modname)
575 parents.append(self.classlink(base, modname))
580 entry, modname, c)
638 key, modname = base.__name__, base.__module__
[all …]
Dihooks.py424 modname = globals.get('__name__')
425 if modname is None:
429 pkgname = modname
432 if '.' not in modname:
438 pkgname = modname.rpartition('.')[0]
Dtrace.py186 def modname(path): function
318 modulename = modname(filename)
541 modulename = modname(filename)
610 modulename = modname(filename)
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dloadlib.c419 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument
422 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc()
423 mark = strchr(modname, *LUA_IGMARK); in loadfunc()
426 funcname = lua_pushlstring(L, modname, mark - modname); in loadfunc()
430 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc()
432 funcname = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc()
570 static void modinit (lua_State *L, const char *modname) { in modinit() argument
574 lua_pushstring(L, modname); in modinit()
576 dot = strrchr(modname, '.'); /* look for last dot in module name */ in modinit()
577 if (dot == NULL) dot = modname; in modinit()
[all …]
Dlauxlib.c810 LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname, in luaL_pushmodule() argument
813 lua_getfield(L, -1, modname); /* get _LOADED[modname] */ in luaL_pushmodule()
818 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule()
819 luaL_error(L, "name conflict for module " LUA_QS, modname); in luaL_pushmodule()
821 lua_setfield(L, -3, modname); /* _LOADED[modname] = new table */ in luaL_pushmodule()
886 LUALIB_API void luaL_requiref (lua_State *L, const char *modname, in luaL_requiref() argument
889 lua_pushstring(L, modname); /* argument to open function */ in luaL_requiref()
893 lua_setfield(L, -2, modname); /* _LOADED[modname] = module */ in luaL_requiref()
897 lua_setglobal(L, modname); /* _G[modname] = module */ in luaL_requiref()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/
Dpydoc.py110 def classname(object, modname): argument
113 if object.__module__ != modname:
545 def classlink(self, object, modname): argument
550 module.__name__, name, classname(object, modname))
551 return classname(object, modname)
615 def formattree(self, tree, modname, parent=None): argument
622 result = result + self.classlink(c, modname)
626 parents.append(self.classlink(base, modname))
631 entry, modname, c)
689 key, modname = base.__name__, base.__module__
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/
Dpydoc.py95 def classname(object, modname): argument
98 if object.__module__ != modname:
499 def classlink(self, object, modname): argument
504 module.__name__, name, classname(object, modname))
505 return classname(object, modname)
564 def formattree(self, tree, modname, parent=None): argument
571 result = result + self.classlink(c, modname)
575 parents.append(self.classlink(base, modname))
580 entry, modname, c)
638 key, modname = base.__name__, base.__module__
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dfuture.c88 identifier modname = s->v.ImportFrom.module; in future_parse() local
89 if (modname && PyString_GET_SIZE(modname) == 10 && in future_parse()
90 !strcmp(PyString_AS_STRING(modname), "__future__")) { in future_parse()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
D__init__.py52 modname = "json.tests." + fn[:-3]
53 __import__(modname)
54 module = sys.modules[modname]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
D__init__.py52 modname = "json.tests." + fn[:-3]
53 __import__(modname)
54 module = sys.modules[modname]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
Dfuture.py11 if stmt.modname == "__future__":
53 if node.modname != "__future__":
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dh2py.py79 modname = outfile.upper()
80 outfile = modname + '.py'
87 importable[filename[len(dir)+1:]] = modname
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_lsprof.c181 char *modname; in normalizeUserObj() local
183 modname = PyString_AS_STRING(mod); in normalizeUserObj()
186 modname = PyModule_GetName(mod); in normalizeUserObj()
187 if (modname == NULL) { in normalizeUserObj()
189 modname = "__builtin__"; in normalizeUserObj()
193 modname = "__builtin__"; in normalizeUserObj()
195 if (strcmp(modname, "__builtin__") != 0) in normalizeUserObj()
197 modname, in normalizeUserObj()
/device/linaro/bootloader/edk2/StdLib/Include/Lua/
Dlauxlib.h98 LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
200 LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname,

12