Home
last modified time | relevance | path

Searched refs:clone (Results 1 – 25 of 48) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_filter.py58 new = ListComp(results.get("fp").clone(),
59 results.get("fp").clone(),
60 results.get("it").clone(),
61 results.get("xp").clone())
66 results["seq"].clone(),
72 new = node.clone()
Dfix_intern.py30 obj = results["obj"].clone()
32 newarglist = obj.clone()
34 newarglist = pytree.Node(syms.arglist, [obj.clone()])
37 after = [n.clone() for n in after]
41 [results["lpar"].clone(),
43 results["rpar"].clone()])] + after)
Dfix_map.py65 new = node.clone()
69 new = ListComp(results["xp"].clone(),
70 results["fp"].clone(),
71 results["it"].clone())
74 new = results["arg"].clone()
87 new = node.clone()
Dfix_execfile.py32 execfile_paren = node.children[-1].children[-1].clone()
34 open_args = ArgList([filename.clone()], rparen=execfile_paren)
41 filename_arg = filename.clone()
49 args.extend([Comma(), globals.clone()])
51 args.extend([Comma(), locals.clone()])
Dfix_raise.py41 exc = results["exc"].clone()
57 exc = exc.children[1].children[0].clone()
66 val = results["val"].clone()
68 args = [c.clone() for c in val.children[1:-1]]
74 tb = results["tb"].clone()
Dfix_throw.py29 exc = results["exc"].clone()
39 val = val.clone()
41 args = [c.clone() for c in val.children[1:-1]]
49 tb = results["tb"].clone()
Dfix_except.py50 tail = [n.clone() for n in results["tail"]]
52 try_cleanup = [ch.clone() for ch in results["cleanup"]]
61 target = N.clone()
64 new_N = new_N.clone()
92 children = [c.clone() for c in node.children[:3]] + try_cleanup + tail
Dfix_tuple_params.py69 arg = tuple_arg.clone()
71 stmt = Assign(arg, n.clone())
76 [stmt, end.clone()]))
117 inner = inner.clone()
127 args.replace(new_param.clone())
130 subscripts = [c.clone() for c in to_index[n.value]]
132 [new_param.clone()] + subscripts)
Dfix_exec.py33 args = [a.clone()]
36 args.extend([Comma(), b.clone()])
38 args.extend([Comma(), c.clone()])
Dfix_apply.py38 func = func.clone()
45 args = args.clone()
48 kwds = kwds.clone()
Dfix_unicode.py18 new = node.clone()
23 new = node.clone()
Dfix_has_key.py83 before = [n.clone() for n in results["before"]]
84 arg = results["arg"].clone()
87 after = [n.clone() for n in after]
Dfix_dict.py66 head = [n.clone() for n in head]
67 tail = [n.clone() for n in tail]
73 results["parens"].clone()]
Dfix_idioms.py101 x = results["x"].clone() # The thing inside of type()
102 T = results["T"].clone() # The type being compared against
125 new = simple_expr.clone()
Dfix_set_literal.py31 fake = pytree.Node(syms.listmaker, [single.clone()])
39 literal.extend(n.clone() for n in items.children)
Dfix_print.py60 file = args[1].clone()
63 l_args = [arg.clone() for arg in args]
Dfix_operator.py53 args = [obj.clone(), String(u", "), String(u"'__call__'")]
84 args = [obj.clone(), String(u", " + u".".join([module, abc]))]
Dfix_metaclass.py65 suite.append_child(move_node.clone())
87 new_expr.append_child(move_node.clone())
174 parent = node.children[3].clone()
Dfix_xreadlines.py25 node.replace([x.clone() for x in results["call"]])
Dfix_repr.py19 expr = results["expr"].clone()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_minidom.py561 clone = root.cloneNode(deep)
563 root, clone, "testCloneElement" + (deep and "Deep" or "Shallow"))
568 return dom, clone
571 dom, clone = self._setupCloneElement(0)
572 self.confirm(len(clone.childNodes) == 0
573 and clone.childNodes.length == 0
574 and clone.parentNode is None
575 and clone.toxml() == '<doc attr="value"/>'
580 dom, clone = self._setupCloneElement(1)
581 self.confirm(len(clone.childNodes) == 1
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/
Dminidom.py1254 clone = DocumentType(None)
1255 clone.name = self.name
1256 clone.nodeName = self.name
1259 clone.entities._seq = []
1260 clone.notations._seq = []
1263 clone.notations._seq.append(notation)
1271 clone.entities._seq.append(entity)
1273 self._call_user_data_handler(operation, self, clone)
1274 return clone
1577 clone = self.implementation.createDocument(None, None, None)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/dom/
Dminidom.py1258 clone = DocumentType(None)
1259 clone.name = self.name
1260 clone.nodeName = self.name
1263 clone.entities._seq = []
1264 clone.notations._seq = []
1267 clone.notations._seq.append(notation)
1275 clone.entities._seq.append(entity)
1277 self._call_user_data_handler(operation, self, clone)
1278 return clone
1581 clone = self.implementation.createDocument(None, None, None)
[all …]
/device/linaro/bootloader/edk2/BaseTools/Scripts/
DConvertMasmToNasm.py46 def __init__(self, clone=None): argument
47 if clone is None:
50 (self.Opt, self.Args) = (clone.Opt, clone.Args)
63 if clone is None:
67 self.rootdir = clone.rootdir
68 self.gitdir = clone.gitdir
69 self.gitemail = clone.gitemail
208 def __init__(self, src, dst, clone): argument
209 CommonUtils.__init__(self, clone)
732 def __init__(self, inf, clone): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/
Dgenerator.py85 def clone(self, fp): member in Generator
202 g = self.clone(s)
253 g = self.clone(s)
269 g = self.clone(s)

12