Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 273) sorted by relevance

1234567891011

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/
Dsystemtest.py31 prefix = sys.argv[1]
33 prefix = ''
34 if prefix:
35 os.chdir(prefix)
36 if prefix[-1:] != '/': prefix = prefix + '/'
37 reportboguslinks(prefix)
41 def reportboguslinks(prefix): argument
45 print "%s%s: can't list: %s" % (prefix, '.', msg)
54 print "%s%s: can't stat: %s" % (prefix, name, msg)
61 (prefix, name, os.readlink(name))
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/
DbgenObjectDefinition.py12 def __init__(self, name, prefix, itselftype): argument
22 GeneratorGroup.__init__(self, prefix or name)
89 self.prefix, self.typename, self.typename)
94 self.static, self.prefix, self.prefix, self.basechain)
101 Output("%sPyObject *%s_New(%s%s %sitself)", self.static, self.prefix,
122 Output("%sint %s_Convert(PyObject *v, %s *p_itself)", self.static, self.prefix,
126 Output("if (!%s_Check(v))", self.prefix)
140 Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype)
160 Output("static PyObject *%s_getattr(%s *self, char *name)", self.prefix, self.objecttype)
168 self.prefix)
[all …]
DbgenGeneratorGroup.py5 def __init__(self, prefix): argument
6 self.prefix = prefix
14 g.setprefix(self.prefix)
21 Output("static PyMethodDef %s_methods[] = {", self.prefix)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_idioms.py103 x.prefix = u""
104 T.prefix = u" "
107 test.prefix = u" "
109 test.prefix = node.prefix
114 one.replace(Name(u"True", prefix=one.prefix))
123 list_call.replace(Name(u"sorted", prefix=list_call.prefix))
126 new.prefix = u""
128 prefix=simple_expr.prefix))
133 btwn = sort_stmt.prefix
141 prefix_lines = (btwn.rpartition(u"\n")[0], next_stmt[0].prefix)
[all …]
Dfix_ws_comma.py29 prefix = child.prefix
30 if prefix.isspace() and u"\n" not in prefix:
31 child.prefix = u""
35 prefix = child.prefix
36 if not prefix:
37 child.prefix = u" "
Dfix_itertools.py29 prefix = None
35 prefix = it.prefix
42 prefix = prefix or func.prefix
43 func.replace(Name(func.value[1:], prefix=prefix))
Dfix_apply.py37 prefix = node.prefix
44 func.prefix = ""
46 args.prefix = ""
49 kwds.prefix = ""
55 l_newargs[-2].prefix = u" " # that's the ** token
59 return Call(func, l_newargs, prefix=prefix)
Dfix_raise.py58 exc.prefix = u" "
63 new.prefix = node.prefix
70 val.prefix = u""
75 tb.prefix = u""
85 new.prefix = node.prefix
90 prefix=node.prefix)
Dfix_urllib.py83 pref = import_mod.prefix
89 names.extend([Name(name[0], prefix=pref), Comma()])
90 names.append(Name(MAPPING[import_mod.value][-1][0], prefix=pref))
99 pref = mod_member.prefix
113 mod_member.replace(Name(new_name, prefix=pref))
141 def handle_name(name, prefix): argument
143 kids = [Name(name.children[0].value, prefix=prefix),
147 return [Name(name.value, prefix=prefix)]
156 if not first or node.parent.prefix.endswith(indentation):
157 new.prefix = indentation
[all …]
Dfix_sys_exc.py26 call = Call(Name(u"exc_info"), prefix=sys_attr.prefix)
28 attr[1].children[0].prefix = results["dot"].prefix
30 return Node(syms.power, attr, prefix=node.prefix)
Dfix_set_literal.py42 literal[-1].prefix = items.next_sibling.prefix
44 maker.prefix = node.prefix
50 maker.children[-1].prefix = n.prefix
Dfix_print.py45 prefix=bare_print.prefix))
65 l_args[0].prefix = u""
74 n_stmt.prefix = node.prefix
79 n_expr.prefix = u""
86 n_argument.prefix = u" "
Dfix_tuple_params.py70 arg.prefix = u""
73 n.prefix = u" "
98 new_lines[0].prefix = u" "
100 new_lines[0].prefix = indent
107 suite[0].children[i].prefix = indent
118 inner.prefix = u" "
126 new_param = Name(tup_name, prefix=u" ")
133 new.prefix = n.prefix
157 def map_to_index(param_list, prefix=[], d=None): argument
165 d[obj] = prefix + trailer
Dfix_has_key.py82 prefix = node.prefix
95 before.prefix = u" "
96 n_op = Name(u"in", prefix=u" ")
98 n_not = Name(u"not", prefix=u" ")
109 new.prefix = prefix
Dfix_next.py55 attr.replace(Name(u"__next__", prefix=attr.prefix))
58 base[0].prefix = u""
59 node.replace(Call(Name(u"next", prefix=node.prefix), base))
61 n = Name(u"__next__", prefix=name.prefix)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dgetpath.c128 static char prefix[MAXPATHLEN+1]; variable
270 strncpy(prefix, home, MAXPATHLEN); in search_for_prefix()
271 delim = strchr(prefix, DELIM); in search_for_prefix()
274 joinpath(prefix, lib_python); in search_for_prefix()
275 joinpath(prefix, LANDMARK); in search_for_prefix()
280 strcpy(prefix, argv0_path); in search_for_prefix()
281 joinpath(prefix, "Modules/Setup"); in search_for_prefix()
282 if (isfile(prefix)) { in search_for_prefix()
285 strcpy(prefix, argv0_path); in search_for_prefix()
286 joinpath(prefix, vpath); in search_for_prefix()
[all …]
Dzipimport.c39 PyObject *prefix; /* file prefix: "a/sub/directory/" */ member
63 char *path, *p, *prefix, buf[MAXPATHLEN+2]; in zipimporter_init() local
93 prefix = NULL; in zipimporter_init()
118 if (prefix != NULL) in zipimporter_init()
119 *prefix = SEP; in zipimporter_init()
123 prefix = p; in zipimporter_init()
145 if (prefix == NULL) in zipimporter_init()
146 prefix = ""; in zipimporter_init()
148 prefix++; in zipimporter_init()
149 len = strlen(prefix); in zipimporter_init()
[all …]
/device/generic/goldfish/ril/
Dmisc.c21 int strStartsWith(const char *line, const char *prefix) in strStartsWith() argument
23 for ( ; *line != '\0' && *prefix != '\0' ; line++, prefix++) { in strStartsWith()
24 if (*line != *prefix) { in strStartsWith()
29 return *prefix == '\0'; in strStartsWith()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DMimeWriter.py96 def addheader(self, key, value, prefix=0): argument
112 if prefix:
128 def startbody(self, ctype, plist=[], prefix=1): argument
140 self.addheader("Content-Type", ctype, prefix=prefix)
145 def startmultipartbody(self, subtype, boundary=None, plist=[], prefix=1): argument
161 prefix=prefix)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
Dgetpath.c86 static char prefix[MAXPATHLEN+1]; variable
465 strncpy(prefix, volume_name, MAXPATHLEN); in calculate_path()
466 joinpath(prefix, PREFIX); in calculate_path()
467 joinpath(prefix, lib_python); in calculate_path()
473 strncpy(zip_path, prefix, MAXPATHLEN); in calculate_path()
499 reduce(prefix); in calculate_path()
500 reduce(prefix); in calculate_path()
503 if (!prefix[0]) { in calculate_path()
504 strcpy(prefix, volume_name); in calculate_path()
506 bufsz = strlen(prefix); in calculate_path()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
Dfixer_util.py32 source.prefix = u" "
36 target + [Leaf(token.EQUAL, u"=", prefix=u" ")] + source)
38 def Name(name, prefix=None): argument
40 return Leaf(token.NAME, name, prefix=prefix)
61 def Call(func_name, args=None, prefix=None): argument
64 if prefix is not None:
65 node.prefix = prefix
76 def Number(n, prefix=None): argument
77 return Leaf(token.NUMBER, n, prefix=prefix)
85 def String(string, prefix=None): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/
Dgetpath.c80 static char prefix[MAXPATHLEN+1]; variable
534 strncpy(prefix, volume_name, MAXPATHLEN); in calculate_path()
535 joinpath(prefix, PREFIX); in calculate_path()
536 joinpath(prefix, lib_python); in calculate_path()
542 strncpy(zip_path, prefix, MAXPATHLEN); in calculate_path()
568 reduce(prefix); in calculate_path()
569 reduce(prefix); in calculate_path()
572 if (!prefix[0]) { in calculate_path()
573 strcpy(prefix, volume_name); in calculate_path()
575 bufsz = strlen(prefix); in calculate_path()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dzipimport.c39 PyObject *prefix; /* file prefix: "a/sub/directory/" */ member
63 char *path, *p, *prefix, buf[MAXPATHLEN+2]; in zipimporter_init() local
93 prefix = NULL; in zipimporter_init()
118 if (prefix != NULL) in zipimporter_init()
119 *prefix = SEP; in zipimporter_init()
123 prefix = p; in zipimporter_init()
145 if (prefix == NULL) in zipimporter_init()
146 prefix = ""; in zipimporter_init()
148 prefix++; in zipimporter_init()
149 len = strlen(prefix); in zipimporter_init()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/sax/
Dsaxutils.py113 prefix = self._current_context[name[0]]
114 if prefix:
116 return prefix + ":" + name[1]
126 def startPrefixMapping(self, prefix, uri): argument
128 self._current_context[uri] = prefix
129 self._undeclared_ns_maps.append((prefix, uri))
131 def endPrefixMapping(self, prefix): argument
147 for prefix, uri in self._undeclared_ns_maps:
148 if prefix:
149 self._out.write(' xmlns:%s="%s"' % (prefix, uri))
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
Dtest_pytree.py42 self.assertEqual(l.prefix, "hi")
75 l1.prefix = "foo_"
89 self.assertEqual(l1.prefix, "")
91 l1.prefix = " ##\n\n"
92 self.assertEqual(l1.prefix, " ##\n\n")
117 self.assertEqual(l1.prefix, "")
119 self.assertEqual(n1.prefix, "")
120 n1.prefix = " "
121 self.assertEqual(n1.prefix, " ")
122 self.assertEqual(l1.prefix, " ")
[all …]

1234567891011