/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/ |
D | fix_operator.py | 41 def transform(self, node, results): argument 42 method = self._check_method(node, results) 44 return method(node, results) 47 def _sequenceIncludes(self, node, results): argument 48 return self._handle_rename(node, results, u"contains") 51 def _isCallable(self, node, results): argument 52 obj = results["obj"] 57 def _repeat(self, node, results): argument 58 return self._handle_rename(node, results, u"mul") 61 def _irepeat(self, node, results): argument [all …]
|
D | fix_idioms.py | 90 def transform(self, node, results): argument 91 if "isinstance" in results: 92 return self.transform_isinstance(node, results) 93 elif "while" in results: 94 return self.transform_while(node, results) 95 elif "sorted" in results: 96 return self.transform_sort(node, results) 100 def transform_isinstance(self, node, results): argument 101 x = results["x"].clone() # The thing inside of type() 102 T = results["T"].clone() # The type being compared against [all …]
|
D | fix_xrange.py | 27 def transform(self, node, results): argument 28 name = results["name"] 30 return self.transform_xrange(node, results) 32 return self.transform_range(node, results) 36 def transform_xrange(self, node, results): argument 37 name = results["name"] 42 def transform_range(self, node, results): argument 45 range_call = Call(Name(u"range"), [results["args"].clone()]) 50 for n in results["rest"]: 66 results = {} [all …]
|
D | fix_imports.py | 108 results = match(node) 109 if results: 112 if "bare_with_attr" not in results and \ 115 return results 122 def transform(self, node, results): argument 123 import_mod = results.get("module_name") 128 if "name_import" in results: 132 if "multiple_imports" in results: 137 results = self.match(node) 138 if results: [all …]
|
D | fix_dict.py | 55 def transform(self, node, results): argument 56 head = results["head"] 57 method = results["method"][0] # Extract node for method name 58 tail = results["tail"] 73 results["parens"].clone()] 94 results = {} 96 self.p1.match(node.parent.parent, results) and 97 results["node"] is node): 100 return results["func"].value in iter_exempt 103 return results["func"].value in fixer_util.consuming_calls [all …]
|
D | fix_urllib.py | 77 def transform_import(self, node, results): argument 82 import_mod = results.get("module") 93 def transform_member(self, node, results): argument 98 mod_member = results.get("mod_member") 100 member = results.get("member") 122 members = results["members"] 169 def transform_dot(self, node, results): argument 171 module_dot = results.get("bare_with_attr") 172 member = results.get("member") 186 def transform(self, node, results): argument [all …]
|
D | fix_map.py | 59 def transform(self, node, results): argument 68 elif "map_lambda" in results: 69 new = ListComp(results["xp"].clone(), 70 results["fp"].clone(), 71 results["it"].clone()) 73 if "map_none" in results: 74 new = results["arg"].clone() 76 if "arglist" in results: 77 args = results["arglist"]
|
D | fix_filter.py | 53 def transform(self, node, results): argument 57 if "filter_lambda" in results: 58 new = ListComp(results.get("fp").clone(), 59 results.get("fp").clone(), 60 results.get("it").clone(), 61 results.get("xp").clone()) 63 elif "none" in results: 66 results["seq"].clone(),
|
D | fix_renames.py | 51 results = match(node) 52 if results: 55 return results 62 def transform(self, node, results): argument 63 mod_name = results.get("module_name") 64 attr_name = results.get("attr_name")
|
D | fix_throw.py | 26 def transform(self, node, results): argument 29 exc = results["exc"].clone() 35 val = results.get(u"val") 46 throw_args = results["args"] 48 if "tb" in results: 49 tb = results["tb"].clone()
|
D | fix_itertools.py | 28 def transform(self, node, results): argument 30 func = results['func'][0] 31 if ('it' in results and 33 dot, it = (results['dot'], results['it'])
|
D | fix_exec.py | 27 def transform(self, node, results): argument 28 assert results 30 a = results["a"] 31 b = results.get("b") 32 c = results.get("c")
|
D | fix_has_key.py | 72 def transform(self, node, results): argument 73 assert results 80 negation = results.get("negation") 81 anchor = results["anchor"] 83 before = [n.clone() for n in results["before"]] 84 arg = results["arg"].clone() 85 after = results.get("after")
|
D | fix_intern.py | 28 def transform(self, node, results): argument 30 obj = results["obj"].clone() 35 after = results["after"] 41 [results["lpar"].clone(), 43 results["rpar"].clone()])] + after)
|
D | fix_next.py | 46 def transform(self, node, results): argument 47 assert results 49 base = results.get("base") 50 attr = results.get("attr") 51 name = results.get("name") 68 head = results["head"] 73 elif "global" in results:
|
D | fix_raise.py | 38 def transform(self, node, results): argument 41 exc = results["exc"].clone() 60 if "val" not in results: 66 val = results["val"].clone() 73 if "tb" in results: 74 tb = results["tb"].clone()
|
D | fix_apply.py | 31 def transform(self, node, results): argument 33 assert results 34 func = results["func"] 35 args = results["args"] 36 kwds = results.get("kwds")
|
D | fix_execfile.py | 24 def transform(self, node, results): argument 25 assert results 26 filename = results["filename"] 27 globals = results.get("globals") 28 locals = results.get("locals")
|
D | fix_tuple_params.py | 46 def transform(self, node, results): argument 47 if "lambda" in results: 48 return self.transform_lambda(node, results) 51 suite = results["suite"] 52 args = results["args"] 110 def transform_lambda(self, node, results): argument 111 args = results["args"] 112 body = results["body"] 113 inner = simplify_args(results["inner"])
|
D | fix_xreadlines.py | 19 def transform(self, node, results): argument 20 no_call = results.get("no_call") 25 node.replace([x.clone() for x in results["call"]])
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_profile.py | 22 results = [] 26 results.append(timer() - start_timer) 32 results.append(s.getvalue()) 33 return results 36 results = self.do_profiling() 37 self.assertEqual(results[0], 1000) 39 self.assertEqual(results[i+1], self.expected_output[method], 66 results = cls.do_profiling() 79 cls.__name__, method, results[i+1]))
|
/device/linaro/bootloader/arm-trusted-firmware/bl32/tsp/ |
D | tsp_main.c | 342 uint64_t results[2]; in tsp_smc_handler() local 358 results[0] = arg1; in tsp_smc_handler() 359 results[1] = arg2; in tsp_smc_handler() 370 results[0] += service_args[0]; in tsp_smc_handler() 371 results[1] += service_args[1]; in tsp_smc_handler() 374 results[0] -= service_args[0]; in tsp_smc_handler() 375 results[1] -= service_args[1]; in tsp_smc_handler() 378 results[0] *= service_args[0]; in tsp_smc_handler() 379 results[1] *= service_args[1]; in tsp_smc_handler() 382 results[0] /= service_args[0] ? service_args[0] : 1; in tsp_smc_handler() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/ |
D | btm_matcher.py | 100 results = defaultdict(list) 120 if not fixer in results: 121 results[fixer] = [] 122 results[fixer].append(current_ast_node) 137 if not fixer in results.keys(): 138 results[fixer] = [] 139 results[fixer].append(current_ast_node) 142 return results
|
D | pytree.py | 488 def match(self, node, results=None): argument 503 if results is not None: 508 results.update(r) 509 if results is not None and self.name: 510 results[self.name] = node 513 def match_seq(self, nodes, results=None): argument 521 return self.match(nodes[0], results) 556 def match(self, node, results=None): argument 560 return BasePattern.match(self, node, results) 562 def _submatch(self, node, results=None): argument [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | DocXMLRPCServer.py | 30 results = [] 45 results.append(escape(text[here:start])) 50 results.append('<a href="%s">%s</a>' % (url, url)) 53 results.append('<a href="%s">%s</a>' % (url, escape(all))) 56 results.append('<a href="%s">%s</a>' % (url, escape(all))) 58 results.append(self.namelink(name, methods, funcs, classes)) 60 results.append('self.<strong>%s</strong>' % name) 62 results.append(self.namelink(name, classes)) 64 results.append(escape(text[here:])) 65 return ''.join(results)
|