Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_map.py65 new = node.clone()
66 new.prefix = u""
67 new = Call(Name(u"list"), [new])
69 new = ListComp(results["xp"].clone(),
74 new = results["arg"].clone()
87 new = node.clone()
88 new.prefix = u""
89 new = Call(Name(u"list"), [new])
90 new.prefix = node.prefix
91 return new
Dfix_filter.py58 new = ListComp(results.get("fp").clone(),
64 new = ListComp(Name(u"_f"),
72 new = node.clone()
73 new.prefix = u""
74 new = Call(Name(u"list"), [new])
75 new.prefix = node.prefix
76 return new
Dfix_unicode.py18 new = node.clone()
19 new.value = _mapping[node.value]
20 return new
23 new = node.clone()
24 new.value = new.value[1:]
25 return new
Dfix_zip.py31 new = node.clone()
32 new.prefix = u""
33 new = Call(Name(u"list"), [new])
34 new.prefix = node.prefix
35 return new
Dfix_has_key.py100 new = pytree.Node(syms.comparison, (arg, n_op, before))
102 new = parenthesize(new)
103 new = pytree.Node(syms.power, (new,) + tuple(after))
108 new = parenthesize(new)
109 new.prefix = prefix
110 return new
Dfix_dict.py74 new = pytree.Node(syms.power, args)
76 new.prefix = u""
77 new = Call(Name(u"iter" if isiter else u"list"), [new])
79 new = pytree.Node(syms.power, [new] + tail)
80 new.prefix = node.prefix
81 return new
Dfix_raise.py62 new = pytree.Node(syms.raise_stmt, [Name(u"raise"), exc])
63 new.prefix = node.prefix
64 return new
84 new = pytree.Node(syms.simple_stmt, [Name(u"raise")] + with_tb)
85 new.prefix = node.prefix
86 return new
Dfix_future.py20 new = BlankLine()
21 new.prefix = node.prefix
22 return new
Dfix_input.py24 new = node.clone()
25 new.prefix = u""
26 return Call(Name(u"eval"), [new], prefix=node.prefix)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_marshal.py51 new = marshal.loads(marshal.dumps(b))
52 self.assertEqual(b, new)
53 self.assertEqual(type(b), type(new))
55 new = marshal.load(file(test_support.TESTFN, "rb"))
56 self.assertEqual(b, new)
57 self.assertEqual(type(b), type(new))
110 new = marshal.loads(marshal.dumps(s))
111 self.assertEqual(s, new)
112 self.assertEqual(type(s), type(new))
114 new = marshal.load(file(test_support.TESTFN, "rb"))
[all …]
Dtest_new.py4 new = test_support.import_module('new', deprecated=True) variable
12 m = new.module('Spam')
21 C = new.classobj('Spam', (Spam.Eggs,), {'get_more_yolks': get_more_yolks})
24 c = new.instance(C, {'yolks': 3})
26 o = new.instance(C)
29 o = new.instance(C, None)
37 im = new.instancemethod(break_yolks, c, C)
50 im = new.instancemethod(break_yolks, c)
55 self.assertRaises(TypeError, new.instancemethod, break_yolks, None)
58 self.assertRaises(TypeError, new.instancemethod, break_yolks, c, kw=1)
[all …]
Dtest_pep247.py26 obj1 = module.new(key)
27 obj2 = module.new(key, 'string')
29 h1 = module.new(key, 'string').digest()
30 obj3 = module.new(key)
34 obj1 = module.new()
35 obj2 = module.new('string')
37 h1 = module.new('string').digest()
38 obj3 = module.new()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
DPBlackBox.h64 in = new DLGFileInput(f); in ParserBlackBox()
65 scan = new Lexer(in); in ParserBlackBox()
66 pipe = new ANTLRTokenBuffer(scan); in ParserBlackBox()
67 tok = new Token; in ParserBlackBox()
69 _parser = new Parser(pipe); in ParserBlackBox()
82 in = new DLGFileInput(f); in ParserBlackBox()
83 scan = new Lexer(in); in ParserBlackBox()
84 pipe = new ANTLRTokenBuffer(scan); in ParserBlackBox()
85 tok = new Token; in ParserBlackBox()
87 _parser = new Parser(pipe); in ParserBlackBox()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
DPBlackBox.h86 in = new DLGFileInput(f); in ParserBlackBox()
87 scan = new Lexer(in); in ParserBlackBox()
88 pipe = new ANTLRTokenBuffer(scan); in ParserBlackBox()
89 tok = new Token; in ParserBlackBox()
91 _parser = new Parser(pipe); in ParserBlackBox()
112 in = new DLGFileInput(f); in ParserBlackBox()
113 scan = new Lexer(in); in ParserBlackBox()
114 pipe = new ANTLRTokenBuffer(scan); in ParserBlackBox()
115 tok = new Token; in ParserBlackBox()
117 _parser = new Parser(pipe); in ParserBlackBox()
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
Dacpi_func.h78 uint32_t new, old; in acpi_acquire_global_lock() local
82 new = ((old & ~GL_BIT_MASK) | GL_BIT_OWNED) | in acpi_acquire_global_lock()
84 } while (atomic_cmpset_acq_int(lock, old, new) == 0); in acpi_acquire_global_lock()
86 return ((new < GL_BIT_MASK) ? GL_ACQUIRED : GL_BUSY); in acpi_acquire_global_lock()
97 uint32_t new, old; in acpi_release_global_lock() local
101 new = old & ~GL_BIT_MASK; in acpi_release_global_lock()
102 } while (atomic_cmpset_rel_int(lock, old, new) == 0); in acpi_release_global_lock()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dquopri.py127 new = ''
142 new = new + ' '; i = i+1
144 new = new + c; i = i+1
148 new = new + ESCAPE; i = i+2
150 new = new + chr(unhex(line[i+1:i+3])); i = i+3
152 new = new + c; i = i+1
154 output.write(new + '\n')
155 new = ''
156 if new:
157 output.write(new)
Dhashlib.py70 return _sha.new
73 return _md5.new
118 return _hashlib.new(name, string)
129 new = __hash_new variable
132 new = __py_new variable
Dwebbrowser.py58 def open(url, new=0, autoraise=True): argument
61 if browser.open(url, new, autoraise):
147 def open(self, url, new=0, autoraise=True): argument
171 def open(self, url, new=0, autoraise=True): argument
188 def open(self, url, new=0, autoraise=True): argument
259 def open(self, url, new=0, autoraise=True): argument
260 if new == 0:
262 elif new == 1:
264 elif new == 2:
271 "expected 0, 1, or 2, got %s" % new)
[all …]
Dweakref.py83 new = WeakValueDictionary()
87 new[key] = o
88 return new
94 new = self.__class__()
98 new[deepcopy(key, memo)] = o
99 return new
265 new = WeakKeyDictionary()
269 new[o] = value
270 return new
276 new = self.__class__()
[all …]
/device/google/contexthub/firmware/os/cpu/x86/
DatomicBitset.c49 uint32_t old, new; in atomicBitsetClearBit() local
57 new = old &~ mask; in atomicBitsetClearBit()
58 } while (!atomicCmpXchg32bits(wordPtr, old, new)); in atomicBitsetClearBit()
67 uint32_t old, new; in atomicBitsetFindClearAndSet() local
75 new = old | (1 << pos); in atomicBitsetFindClearAndSet()
77 if (atomicCmpXchg32bits(wordPtr, old, new)) in atomicBitsetFindClearAndSet()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
Dgrammar.py104 new = self.__class__()
107 setattr(new, dict_attr, getattr(self, dict_attr).copy())
108 new.labels = self.labels[:]
109 new.states = self.states[:]
110 new.start = self.start
111 return new
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dhashlib.py76 return _sha.new
79 return _md5.new
124 return _hashlib.new(name, string)
135 new = __hash_new variable
140 new = __py_new variable
179 inner = new(hash_name)
180 outer = new(hash_name)
183 password = new(hash_name, password).digest()
204 hex_format_string = "%%0%ix" % (new(hash_name).digest_size * 2)
Dweakref.py109 new = WeakValueDictionary()
113 new[key] = o
114 return new
120 new = self.__class__()
124 new[deepcopy(key, memo)] = o
125 return new
324 new = WeakKeyDictionary()
328 new[o] = value
329 return new
335 new = self.__class__()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Drrcs.py51 new = not x.isvalid(fn)
52 if not new and same(x, copts, fn, data):
56 message = asklogmessage(new)
118 lsum = md5.new(data).digest()
122 def asklogmessage(new): argument
123 if new:
128 if new:
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt_rw.c156 char *new; in _fdt_find_add_string() local
165 new = strtab + fdt_size_dt_strings(fdt); in _fdt_find_add_string()
170 memcpy(new, s, len); in _fdt_find_add_string()
171 return (new - strtab); in _fdt_find_add_string()
397 static void _fdt_packblocks(const char *old, char *new, in _fdt_packblocks() argument
406 memmove(new + mem_rsv_off, old + fdt_off_mem_rsvmap(old), mem_rsv_size); in _fdt_packblocks()
407 fdt_set_off_mem_rsvmap(new, mem_rsv_off); in _fdt_packblocks()
409 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in _fdt_packblocks()
410 fdt_set_off_dt_struct(new, struct_off); in _fdt_packblocks()
411 fdt_set_size_dt_struct(new, struct_size); in _fdt_packblocks()
[all …]

12345678910>>...13