/third_party/python/Lib/encodings/ |
H A D | undefined.py | 18 def encode(self,input,errors='strict'): 21 def decode(self,input,errors='strict'): 25 def encode(self, input, final=False): 29 def decode(self, input, final=False):
|
H A D | raw_unicode_escape.py | 21 def encode(self, input, final=False): 22 return codecs.raw_unicode_escape_encode(input, self.errors)[0] 25 def _buffer_decode(self, input, errors, final): 32 def decode(self, input, errors='strict'):
|
H A D | latin_1.py | 21 def encode(self, input, final=False): 22 return codecs.latin_1_encode(input,self.errors)[0] 25 def decode(self, input, final=False): 26 return codecs.latin_1_decode(input,self.errors)[0]
|
/third_party/python/Lib/tkinter/test/test_tkinter/ |
H A D | test_simpledialog.py | 12 def test_askinteger(self): 22 self.assertEqual(ismapped, False) 27 self.assertEqual(ismapped, True) 31 self.assertRaises(RuntimeError, askinteger, "Go To Line", "Line number")
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_autocomplete_w.py | 27 def test_init(self): 28 self.assertEqual(self.acw.widget, self.text)
|
H A D | test_calltip_w.py | 25 def test_init(self): 26 self.assertEqual(self.calltip.anchor_widget, self.text)
|
H A D | test_tree.py | 22 def test_init(self): 25 self.root, bg="white", highlightthickness=0, takefocus=1) 34 def test_wheel_event(self): 40 self.assertTupleEqual(widget.expected, args) 56 self.assertEqual(res, "break")
|
/third_party/python/Lib/tkinter/ |
H A D | colorchooser.py | 35 def _fixoptions(self): 41 color = self.options["initialcolor"] 44 self.options["initialcolor"] = "#%02x%02x%02x" % color 48 def _fixresult(self, widget, result):
|
/third_party/node/lib/internal/fs/ |
H A D | watchers.js | 67 function emitStop(self) { 68 self.emit('stop'); 84 const self = this[owner_symbol]; 85 if (self[kOldStatus] === -1 && 91 self[kOldStatus] = newStatus; 92 self.emit('change', getStatsFromBinding(stats), 197 // TODO(joyeecheung): we may check self._handle.initialized here 290 function emitCloseNT(self) { 291 self.emit('close');
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/ |
H A D | db.js | 278 let self = this; 417 if (self.seen.has(key)) { 427 let dirPath = fsPath.join(self.outputDir, expression.type); 438 let relPath = fsPath.relative(self.outputDir, filePath); 441 self.seen.add(key); 442 self.index.all.push(relPath); 445 self.index.superStatements.push(relPath); 447 self.index.statements.push(relPath);
|
/third_party/python/Lib/re/ |
H A D | __init__.py | 338 def __init__(self, lexicon, flags=0): 342 self.lexicon = lexicon 354 self.scanner = _compiler.compile(p) 355 def scan(self, string): 358 match = self.scanner.scanner(string).match 367 action = self.lexicon[m.lastindex-1][1] 369 self.match = m 370 action = action(self, m.group())
|
/third_party/python/Objects/ |
H A D | namespaceobject.c | 25 PyObject *self; in namespace_new() local 28 self = type->tp_alloc(type, 0); in namespace_new() 29 if (self != NULL) { in namespace_new() 30 _PyNamespaceObject *ns = (_PyNamespaceObject *)self; in namespace_new() 37 return self; in namespace_new() 165 namespace_richcompare(PyObject *self, PyObject *other, int op) in namespace_richcompare() argument 167 if (PyObject_TypeCheck(self, &_PyNamespace_Type) && in namespace_richcompare() 169 return PyObject_RichCompare(((_PyNamespaceObject *)self)->ns_dict, in namespace_richcompare()
|
/third_party/benchmark/bindings/python/google_benchmark/ |
H A D | __init__.py | 84 def __init__(self, func): 85 self.func = func 86 self.builder_calls = [] 95 def __getattr__(self, builder_name): 104 options = self.make(func_or_options)
|
/third_party/python/Lib/xml/dom/ |
H A D | __init__.py | 66 def __init__(self, *args, **kw): 67 if self.__class__ is DOMException: 70 Exception.__init__(self, *args, **kw) 72 def _get_code(self): 73 return self.code
|
/third_party/python/Lib/test/test_email/ |
H A D | torture_test.py | 35 def _msgobj(self, filename): 47 def test_mondo_message(self): 48 eq = self.assertEqual 49 neq = self.ndiffAssertEqual 50 msg = self._msgobj('crispin-torture.txt')
|
/third_party/vk-gl-cts/scripts/ |
H A D | testset.py | 42 def __init__ (self, name, description, filters): 43 self.name = name 44 self.description = description 45 self.filters = filters 48 def __init__ (self, name, results): 49 self.name = name 50 self.results = results 53 def __init__ (self, name): 54 self.name = name 55 self [all...] |
/third_party/mbedtls/scripts/mbedtls_dev/ |
H A D | logging_util.py | 26 def __init__(self, max_level, name=''): 28 self.max_level = max_level 30 def filter(self, record: logging.LogRecord) -> bool: 31 return record.levelno <= self.max_level
|
/third_party/jinja2/ |
H A D | optimizer.py | 27 def __init__(self, environment: "t.Optional[Environment]") -> None: 28 self.environment = environment 31 self, node: nodes.Node, *args: t.Any, **kwargs: t.Any 42 environment=self.environment,
|
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | api_vtxfmt_init_h.py | 35 def __init__(self): 38 self.name = 'api_vtxfmt_init_h.py' 39 self.license = license.bsd_license_template % ( 44 def printBody(self, api):
|
/third_party/ltp/testcases/realtime/func/pi-tests/ |
H A D | parse-testpi2.py | 34 def __init__(self,filename): 35 Log.__init__(self,filename) 37 def eval(self): 44 for line in self.read():
|
H A D | parse-testpi1.py | 33 def __init__(self,filename): 34 Log.__init__(self,filename) 36 def eval(self): 41 for line in self.read():
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | target-s390.c | 7 static void init_s390(const struct target *self) in init_s390() argument 18 static void predefine_s390(const struct target *self) in predefine_s390() argument 51 static void predefine_s390x(const struct target *self) in predefine_s390x() argument 56 predefine_s390(self); in predefine_s390x()
|
/third_party/python/Tools/c-analyzer/c_common/ |
H A D | logging.py | 57 def __init__(self, verbosity=VERBOSITY): 58 self.verbosity = verbosity 60 def info(self, *args, **kwargs): 61 if self.verbosity < 3:
|
/third_party/python/Lib/distutils/tests/ |
H A D | test_log.py | 11 def test_non_ascii(self): 17 with self.subTest(errors=errors): 32 self.assertEqual(stdout.read().rstrip(), 37 self.assertEqual(stderr.read().rstrip(),
|
/third_party/python/Lib/test/ |
H A D | test_startfile.py | 23 def test_nonexisting(self): 24 self.assertRaises(OSError, startfile, "nonexisting.vbs") 26 def test_empty(self): 37 def test_python(self):
|