Home
last modified time | relevance | path

Searched refs:fullname (Results 1 – 25 of 178) sorted by relevance

12345678

/third_party/python/Lib/
Dzipimport.py110 def find_loader(self, fullname, path=None): argument
125 mi = _get_module_info(self, fullname)
135 modpath = _get_module_path(self, fullname)
147 def find_module(self, fullname, path=None): argument
161 return self.find_loader(fullname, path)[0]
163 def find_spec(self, fullname, target=None): argument
168 module_info = _get_module_info(self, fullname)
170 return _bootstrap.spec_from_loader(fullname, self, is_package=module_info)
177 modpath = _get_module_path(self, fullname)
183 spec = _bootstrap.ModuleSpec(name=fullname, loader=None,
[all …]
Dpkgutil.py213 def find_module(self, fullname, path=None): argument
215 subname = fullname.split(".")[-1]
216 if subname != fullname and self.path is None:
226 return ImpLoader(fullname, file, filename, etc)
274 def __init__(self, fullname, file, filename, etc): argument
281 self.fullname = fullname
284 def load_module(self, fullname): argument
287 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
307 def _fix_name(self, fullname): argument
308 if fullname is None:
[all …]
Dcompileall.py40 fullname = os.path.join(dir, name)
41 if not os.path.isdir(fullname):
42 yield fullname
44 os.path.isdir(fullname) and not os.path.islink(fullname)):
45 yield from _walk_dir(fullname, maxlevels=maxlevels - 1,
125 def compile_file(fullname, ddir=None, force=False, rx=None, quiet=0, argument
157 if quiet < 2 and isinstance(fullname, os.PathLike):
158 fullname = os.fspath(fullname)
159 name = os.path.basename(fullname)
167 fullname_parts = fullname.split(os.path.sep)
[all …]
Dlinecache.py68 size, mtime, lines, fullname = entry
72 stat = os.stat(fullname)
91 fullname = filename
93 stat = os.stat(fullname)
113 fullname
124 fullname = os.path.join(dirname, basename)
129 stat = os.stat(fullname)
136 with tokenize.open(fullname) as fp:
143 cache[filename] = size, mtime, lines, fullname
/third_party/python/Lib/importlib/
D_bootstrap_external.py565 def _find_module_shim(self, fullname): argument
578 loader, portions = self.find_loader(fullname)
814 def _search_registry(cls, fullname): argument
819 key = registry_key.format(fullname=fullname,
829 def find_spec(cls, fullname, path=None, target=None): argument
830 filepath = cls._search_registry(fullname)
839 spec = _bootstrap.spec_from_loader(fullname,
840 loader(fullname, filepath),
845 def find_module(cls, fullname, path=None): argument
854 spec = cls.find_spec(fullname, path)
[all …]
Dabc.py51 def find_module(self, fullname, path=None): argument
71 def find_module(self, fullname, path): argument
89 found = self.find_spec(fullname, path)
108 def find_loader(self, fullname): argument
130 found = self.find_spec(fullname)
175 def is_package(self, fullname): argument
183 def get_code(self, fullname): argument
191 source = self.get_source(fullname)
197 def get_source(self, fullname): argument
229 def get_filename(self, fullname): argument
[all …]
D_bootstrap.py254 def _requires_builtin_wrapper(self, fullname): argument
255 if fullname not in sys.builtin_module_names:
256 raise ImportError('{!r} is not a built-in module'.format(fullname),
257 name=fullname)
258 return fxn(self, fullname)
265 def _requires_frozen_wrapper(self, fullname): argument
266 if not _imp.is_frozen(fullname):
267 raise ImportError('{!r} is not a frozen module'.format(fullname),
268 name=fullname)
269 return fxn(self, fullname)
[all …]
Dutil.py90 fullname = resolve_name(name, package) if name.startswith('.') else name
91 if fullname not in sys.modules:
92 parent_name = fullname.rpartition('.')[0]
100 f"while trying to find {fullname!r}", name=fullname) from e
103 return _find_spec(fullname, parent_path)
105 module = sys.modules[fullname]
204 def module_for_loader_wrapper(self, fullname, *args, **kwargs): argument
205 with _module_to_load(fullname) as module:
208 is_package = self.is_package(fullname)
213 module.__package__ = fullname
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dntfsusermap.c541 char *fullname; in account() local
543 fullname = (char *)malloc(strlen(dir) + strlen(name) + 2); in account()
544 if (fullname) { in account()
545 strcpy(fullname, dir); in account()
546 strcat(fullname, "/"); in account()
547 strcat(fullname, name); in account()
549 fullname, OWNER_SECURITY_INFORMATION, in account()
554 fullname, GROUP_SECURITY_INFORMATION, in account()
561 fullname, DACL_SECURITY_INFORMATION, in account()
569 free(fullname); in account()
[all …]
/third_party/e2fsprogs/debugfs/
Ddump.c200 const char *fullname) in rdump_symlink() argument
240 if (symlink(buf, fullname) == -1) { in rdump_symlink()
241 com_err("rdump", errno, "while creating symlink %s -> %s", buf, fullname); in rdump_symlink()
254 char *fullname; in rdump_inode() local
258 fullname = malloc(strlen(dumproot) + strlen(name) + 2); in rdump_inode()
259 if (!fullname) { in rdump_inode()
263 sprintf(fullname, "%s/%s", dumproot, name); in rdump_inode()
266 rdump_symlink(ino, inode, fullname); in rdump_inode()
269 fd = open(fullname, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, S_IRWXU); in rdump_inode()
271 com_err("rdump", errno, "while opening %s", fullname); in rdump_inode()
[all …]
/third_party/gettext/libtextstyle/examples/color-hello/
Dhello.c115 const char *fullname = NULL; in main() local
132 fullname = arg; in main()
172 if (fullname == NULL) in main()
173 fullname = get_fullname (); in main()
174 if (fullname != NULL) in main()
181 const char *fullname_end = fullname + strlen (fullname); in main()
188 const char *comma = strchr (fullname, ','); in main()
199 firstname_start = fullname; in main()
222 ostream_write_mem (stream, fullname, firstname_start - fullname); in main()
/third_party/mesa3d/src/freedreno/rnn/
Dpath.c44 char *fullname; in find_in_path() local
46 int ret = asprintf(&fullname, "%.*s/%s%s", (int)plen, path, name, exts[i]); in find_in_path()
50 FILE *file = fopen(fullname, "r"); in find_in_path()
53 *pfullname = fullname; in find_in_path()
55 free(fullname); in find_in_path()
58 free(fullname); in find_in_path()
Drnn.h98 char *fullname; member
108 char *fullname; member
161 char *fullname; member
169 char *fullname; member
183 char *fullname; member
224 char *fullname; member
/third_party/ffmpeg/ffbuild/
Dpkgconfig_generate.sh13 fullname=${name}${build_suffix}
29 cat <<EOF > $name/$fullname.pc
35 Name: $fullname
41 Libs: -L\${libdir} $rpath -l${fullname#lib} $($shared || echo $libs)
55 Name: $fullname
60 Libs: -L\${libdir} -Wl,-rpath,\${libdir} -l${fullname#lib} $($shared || echo $libs)
/third_party/nghttp2/doc/_exts/sphinxcontrib/
Drubydomain.py52 def ruby_rsplit(fullname): argument
53 items = [item for item in rb_separator.findall(fullname)]
118 fullname = name
122 fullname = name_prefix + name
127 fullname = classname + separator + name_prefix + name
132 fullname = name_prefix + name
135 fullname = name
139 signode['fullname'] = fullname
167 return fullname, name_prefix
190 return fullname, name_prefix
[all …]
/third_party/python/Lib/test/
Dtest_pkg.py15 fullname = os.path.join(root, name)
16 if os.path.isdir(fullname) and not os.path.islink(fullname):
17 cleanout(fullname)
19 os.remove(fullname)
80 fullname = root
82 fullname = os.path.join(fullname, c)
84 os.mkdir(fullname)
86 with open(fullname, "w") as f:
/third_party/python/Lib/test/test_importlib/import_/
Dtest_api.py15 def find_spec(cls, fullname, path=None, target=None): argument
16 if fullname == SUBMOD_NAME:
17 spec = machinery.ModuleSpec(fullname, cls)
32 def find_module(cls, fullname, path): argument
33 if fullname == SUBMOD_NAME:
37 def load_module(cls, fullname): argument
38 if fullname == SUBMOD_NAME:
Dtest___loader__.py12 def find_spec(self, fullname, path=None, target=None): argument
13 return machinery.ModuleSpec(fullname, self)
38 def find_module(self, fullname, path=None): argument
41 def load_module(self, fullname): argument
42 sys.modules[fullname] = self.module
/third_party/protobuf/php/ext/google/protobuf/
Dnames.c183 static void fill_classname(const char *fullname, in fill_classname() argument
192 size_t fullname_len = strlen(fullname); in fill_classname()
197 while (j < fullname_len && fullname[j] != '.') { in fill_classname()
200 fill_prefix(fullname + i, j - i, prefix, package, classname); in fill_classname()
201 fill_segment(fullname + i, j - i, classname, false); in fill_classname()
209 char *GetPhpClassname(const upb_filedef *file, const char *fullname) { in GetPhpClassname() argument
221 fill_classname(fullname, package, prefix, &namesink); in GetPhpClassname()
/third_party/python/Lib/test/support/
Dos_helper.py288 fullname = os.path.join(path, name)
290 mode = os.lstat(fullname).st_mode
293 % (fullname, exc),
297 _waitfor(_rmtree_inner, fullname, waitall=True)
298 _force_run(fullname, os.rmdir, fullname)
300 _force_run(fullname, os.unlink, fullname)
332 fullname = os.path.join(path, name)
334 mode = os.lstat(fullname).st_mode
338 _rmtree_inner(fullname)
339 _force_run(path, os.rmdir, fullname)
[all …]
/third_party/python/Tools/scripts/
Dpathfix.py108 fullname = os.path.join(dirname, name)
109 if os.path.islink(fullname): pass
110 elif os.path.isdir(fullname):
111 subdirs.append(fullname)
113 if fix(fullname): bad = 1
114 for fullname in subdirs:
115 if recursedown(fullname): bad = 1
Dfixcid.py107 fullname = os.path.join(dirname, name)
108 if os.path.islink(fullname): pass
109 elif os.path.isdir(fullname):
110 subdirs.append(fullname)
112 if fix(fullname): bad = 1
113 for fullname in subdirs:
114 if recursedown(fullname): bad = 1
/third_party/python/Doc/library/
Dzipimport.rst92 .. method:: find_loader(fullname, path=None)
101 .. method:: find_module(fullname, path=None)
103 Search for a module specified by *fullname*. *fullname* must be the fully
114 .. method:: find_spec(fullname, target=None)
121 .. method:: get_code(fullname)
136 .. method:: get_filename(fullname)
145 .. method:: get_source(fullname)
153 .. method:: is_package(fullname)
155 Return ``True`` if the module specified by *fullname* is a package. Raise
159 .. method:: load_module(fullname)
[all …]
/third_party/grpc/third_party/upb/third_party/lunit/
Dconsole.lua116 function err(fullname, message, traceback)
118 …msgs[#msgs+1] = "Error! ("..fullname.."):\n"..message.."\n\t"..table.concat(traceback, "\n\t") .. …
122 function fail(fullname, where, message, usermessage)
124 local text = "Failure ("..fullname.."):\n"..
/third_party/python/Lib/test/test_importlib/
Dutil.py260 def find_module(self, fullname, path=None): argument
261 if fullname not in self.modules:
266 def load_module(self, fullname): argument
267 if fullname not in self.modules:
270 sys.modules[fullname] = self.modules[fullname]
271 if fullname in self.module_code:
273 self.module_code[fullname]()
275 del sys.modules[fullname]
277 return self.modules[fullname]
284 def find_spec(self, fullname, path=None, parent=None): argument
[all …]

12345678