Home
last modified time | relevance | path

Searched refs:self (Results 1901 - 1925 of 4699) sorted by relevance

1...<<71727374757677787980>>...188

/third_party/python/Lib/test/
H A Dtest_flufl.py8 def test_barry_as_bdfl(self):
12 with self.assertRaises(SyntaxError) as cm:
15 self.assertRegex(str(cm.exception),
17 self.assertIn('2 != 3', cm.exception.text)
18 self.assertEqual(cm.exception.filename, '<FLUFL test>')
20 self.assertEqual(cm.exception.lineno, 2)
23 self.assertEqual(cm.exception.offset, 3)
25 def test_guido_as_bdfl(self):
28 with self.assertRaises(SyntaxError) as cm:
30 self
[all...]
H A Dtest_unicode_identifiers.py5 def test_valid(self):
11 self.assertEqual(getattr(T, "\xe4"), 1)
12 self.assertEqual(getattr(T, "\u03bc"), 2)
13 self.assertEqual(getattr(T, '\u87d2'), 3)
14 self.assertEqual(getattr(T, 'x\U000E0100'), 4)
16 def test_non_bmp_normalized(self):
18 self.assertIn("Unicode", dir())
20 def test_invalid(self):
24 self.assertEqual(str(err),
26 self
[all...]
/third_party/python/Lib/unittest/test/
H A D_test_warnings.py23 def test_assert(self):
24 self.assertEquals(2+2, 4)
25 self.assertEquals(2*2, 4)
26 self.assertEquals(2**2, 4)
28 def test_fail(self):
29 self.failUnless(1)
30 self.failUnless(True)
32 def test_other_unittest(self):
33 self.assertAlmostEqual(2+2, 4)
34 self
[all...]
/kernel/linux/linux-6.6/Documentation/sphinx/
H A Dkernel_feat.py70 def warn(self, message, **replace):
71 replace["fname"] = self.state.document.current_source
72 replace["line_no"] = replace.get("line_no", self.lineno)
74 self.state.document.settings.env.app.warn(message, prefix="")
76 def run(self):
77 doc = self.state.document
79 raise self.warning("docutils: file insertion disabled")
90 os.path.join(srctree, 'Documentation', self.arguments[0]),
93 if len(self.arguments) > 1:
94 args.extend(['--arch', self
[all...]
/third_party/mbedtls/scripts/mbedtls_dev/
H A Dc_parsing_helper.py40 def __init__(self, decl: str) -> None:
41 self.decl = decl.strip()
42 m = self._DECLARATION_RE.match(self.decl)
44 raise ValueError(self.decl)
45 self.type = self.normalize_type(m.group('type')) #type: str
46 self.name = m.group('name') #type: Optional[str]
47 self.suffix = m.group('suffix') if m.group('suffix') else '' #type: str
57 def __init__(self, #pylin
[all...]
/third_party/python/Lib/ctypes/test/
H A Dtest_refcounts.py15 def test_1(self):
26 self.assertEqual(grc(callback), 2)
29 self.assertGreater(grc(callback), 2)
31 self.assertEqual(result, -18)
36 self.assertEqual(grc(callback), 2)
40 def test_refcount(self):
45 self.assertEqual(grc(func), 2)
49 self.assertGreater(grc(func), 2)
53 self.assertGreaterEqual(grc(func), 2)
57 self
[all...]
/third_party/python/Lib/idlelib/
H A Dsearch.py65 def create_widgets(self):
67 SearchDialogBase.create_widgets(self)
69 self.make_button("Find Next", self.default_command, isdef=True)
71 def default_command(self, event=None):
73 if not self.engine.getprog():
75 self.find_again(self.text)
77 def find_again(self, text):
93 if not self
[all...]
/third_party/python/Lib/
H A Drlcompleter.py42 def __init__(self, namespace = None):
64 self.use_main_ns = 1
66 self.use_main_ns = 0
67 self.namespace = namespace
69 def complete(self, text, state):
76 if self.use_main_ns:
77 self.namespace = __main__.__dict__
92 self.matches = self.attr_matches(text)
94 self
[all...]
/third_party/protobuf/python/google/protobuf/pyext/
H A Dmessage_factory.cc106 PyMessageFactory* self = reinterpret_cast<PyMessageFactory*>(pself); in Dealloc() local
109 for (iterator it = self->classes_by_descriptor->begin(); in Dealloc()
110 it != self->classes_by_descriptor->end(); ++it) { in Dealloc()
113 delete self->classes_by_descriptor; in Dealloc()
114 delete self->message_factory; in Dealloc()
115 Py_CLEAR(self->pool); in Dealloc()
116 Py_TYPE(self)->tp_free(pself); in Dealloc()
120 PyMessageFactory* self = reinterpret_cast<PyMessageFactory*>(pself); in GcTraverse() local
121 Py_VISIT(self->pool); in GcTraverse()
122 for (const auto& desc_and_class : *self in GcTraverse()
129 PyMessageFactory* self = reinterpret_cast<PyMessageFactory*>(pself); GcClear() local
140 RegisterMessageClass(PyMessageFactory* self, const Descriptor* message_descriptor, CMessageClass* message_class) RegisterMessageClass() argument
155 GetOrCreateMessageClass(PyMessageFactory* self, const Descriptor* descriptor) GetOrCreateMessageClass() argument
223 GetMessageClass(PyMessageFactory* self, const Descriptor* message_descriptor) GetMessageClass() argument
239 GetPool(PyMessageFactory* self, void* closure) GetPool() argument
[all...]
/third_party/vk-gl-cts/modules/gles2/scripts/
H A Dgen-conversions.py161 def __init__(self, name, inputs, outputs, op):
162 self.name = name
163 self.inputs = inputs
164 self.outputs = outputs
165 self.op = op
167 def __str__(self):
169 "NAME": self.name,
170 "VALUES": genValues(self.inputs, self.outputs),
171 "OP": self
[all...]
/third_party/python/Modules/
H A D_abc.c45 abc_data_traverse(_abc_data *self, visitproc visit, void *arg) in abc_data_traverse() argument
47 Py_VISIT(Py_TYPE(self)); in abc_data_traverse()
48 Py_VISIT(self->_abc_registry); in abc_data_traverse()
49 Py_VISIT(self->_abc_cache); in abc_data_traverse()
50 Py_VISIT(self->_abc_negative_cache); in abc_data_traverse()
55 abc_data_clear(_abc_data *self) in abc_data_clear() argument
57 Py_CLEAR(self->_abc_registry); in abc_data_clear()
58 Py_CLEAR(self->_abc_cache); in abc_data_clear()
59 Py_CLEAR(self->_abc_negative_cache); in abc_data_clear()
64 abc_data_dealloc(_abc_data *self) in abc_data_dealloc() argument
76 _abc_data *self = (_abc_data *) type->tp_alloc(type, 0); abc_data_new() local
115 _get_impl(PyObject *module, PyObject *self) _get_impl() argument
216 _abc__reset_registry(PyObject *module, PyObject *self) _abc__reset_registry() argument
243 _abc__reset_caches(PyObject *module, PyObject *self) _abc__reset_caches() argument
278 _abc__get_dump(PyObject *module, PyObject *self) _abc__get_dump() argument
296 compute_abstract_methods(PyObject *self) compute_abstract_methods() argument
430 _abc__abc_init(PyObject *module, PyObject *self) _abc__abc_init() argument
518 _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass) _abc__abc_register_impl() argument
580 _abc__abc_instancecheck_impl(PyObject *module, PyObject *self, PyObject *instance) _abc__abc_instancecheck_impl() argument
669 _abc__abc_subclasscheck_impl(PyObject *module, PyObject *self, PyObject *subclass) _abc__abc_subclasscheck_impl() argument
[all...]
H A D_tkinter.c285 if (((TkappObject *)self)->threaded && \
286 ((TkappObject *)self)->thread_id != Tcl_GetCurrentThread()) { \
341 Tkinter_Error(TkappObject *self) in Tkinter_Error() argument
343 PyObject *res = Tkapp_UnicodeResult(self); in Tkinter_Error()
375 WaitForMainloop(TkappObject* self) in WaitForMainloop() argument
379 if (self->dispatching) in WaitForMainloop()
385 if (self->dispatching) in WaitForMainloop()
734 Tkapp_ThreadSend(TkappObject *self, Tcl_Event *ev, in Tkapp_ThreadSend() argument
739 Tcl_ThreadQueueEvent(self->thread_id, ev, TCL_QUEUE_TAIL); in Tkapp_ThreadSend()
740 Tcl_ThreadAlert(self in Tkapp_ThreadSend()
761 PyTclObject *self; newPyTclObject() local
772 PyTclObject_dealloc(PyTclObject *self) PyTclObject_dealloc() argument
786 PyTclObject_string(PyTclObject *self, void *ignored) PyTclObject_string() argument
798 PyTclObject_str(PyTclObject *self) PyTclObject_str() argument
809 PyTclObject_repr(PyTclObject *self) PyTclObject_repr() argument
821 PyTclObject_richcompare(PyObject *self, PyObject *other, int op) PyTclObject_richcompare() argument
1243 TkappObject *self; global() member
1323 Tkapp_UnicodeResult(TkappObject *self) Tkapp_UnicodeResult() argument
1332 Tkapp_ObjectResult(TkappObject *self) Tkapp_ObjectResult() argument
1412 TkappObject *self = (TkappObject*)selfptr; Tkapp_Call() local
1488 _tkinter_tkapp_eval_impl(TkappObject *self, const char *script) _tkinter_tkapp_eval_impl() argument
1517 _tkinter_tkapp_evalfile_impl(TkappObject *self, const char *fileName) _tkinter_tkapp_evalfile_impl() argument
1546 _tkinter_tkapp_record_impl(TkappObject *self, const char *script) _tkinter_tkapp_record_impl() argument
1575 _tkinter_tkapp_adderrorinfo_impl(TkappObject *self, const char *msg) _tkinter_tkapp_adderrorinfo_impl() argument
1598 TkappObject *self; global() member
1694 TkappObject *self = (TkappObject*)selfptr; var_invoke() local
1735 SetVar(TkappObject *self, PyObject *args, int flags) SetVar() argument
1790 Tkapp_SetVar(PyObject *self, PyObject *args) Tkapp_SetVar() argument
1796 Tkapp_GlobalSetVar(PyObject *self, PyObject *args) Tkapp_GlobalSetVar() argument
1804 GetVar(TkappObject *self, PyObject *args, int flags) GetVar() argument
1833 Tkapp_GetVar(PyObject *self, PyObject *args) Tkapp_GetVar() argument
1839 Tkapp_GlobalGetVar(PyObject *self, PyObject *args) Tkapp_GlobalGetVar() argument
1847 UnsetVar(TkappObject *self, PyObject *args, int flags) UnsetVar() argument
1872 Tkapp_UnsetVar(PyObject *self, PyObject *args) Tkapp_UnsetVar() argument
1878 Tkapp_GlobalUnsetVar(PyObject *self, PyObject *args) Tkapp_GlobalUnsetVar() argument
1897 _tkinter_tkapp_getint(TkappObject *self, PyObject *arg) _tkinter_tkapp_getint() argument
1943 _tkinter_tkapp_getdouble(TkappObject *self, PyObject *arg) _tkinter_tkapp_getdouble() argument
1983 _tkinter_tkapp_getboolean(TkappObject *self, PyObject *arg) _tkinter_tkapp_getboolean() argument
2018 _tkinter_tkapp_exprstring_impl(TkappObject *self, const char *s) _tkinter_tkapp_exprstring_impl() argument
2047 _tkinter_tkapp_exprlong_impl(TkappObject *self, const char *s) _tkinter_tkapp_exprlong_impl() argument
2077 _tkinter_tkapp_exprdouble_impl(TkappObject *self, const char *s) _tkinter_tkapp_exprdouble_impl() argument
2106 _tkinter_tkapp_exprboolean_impl(TkappObject *self, const char *s) _tkinter_tkapp_exprboolean_impl() argument
2137 _tkinter_tkapp_splitlist(TkappObject *self, PyObject *arg) _tkinter_tkapp_splitlist() argument
2212 PyObject *self; global() member
2324 _tkinter_tkapp_createcommand_impl(TkappObject *self, const char *name, PyObject *func) _tkinter_tkapp_createcommand_impl() argument
2394 _tkinter_tkapp_deletecommand_impl(TkappObject *self, const char *name) _tkinter_tkapp_deletecommand_impl() argument
2511 _tkinter_tkapp_createfilehandler_impl(TkappObject *self, PyObject *file, int mask, PyObject *func) _tkinter_tkapp_createfilehandler_impl() argument
2548 _tkinter_tkapp_deletefilehandler(TkappObject *self, PyObject *file) _tkinter_tkapp_deletefilehandler() argument
2586 _tkinter_tktimertoken_deletetimerhandler_impl(TkttObject *self) _tkinter_tktimertoken_deletetimerhandler_impl() argument
2623 Tktt_Dealloc(PyObject *self) Tktt_Dealloc() argument
2636 Tktt_Repr(PyObject *self) Tktt_Repr() argument
2684 _tkinter_tkapp_createtimerhandler_impl(TkappObject *self, int milliseconds, PyObject *func) _tkinter_tkapp_createtimerhandler_impl() argument
2718 _tkinter_tkapp_mainloop_impl(TkappObject *self, int threshold) _tkinter_tkapp_mainloop_impl() argument
2779 _tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags) _tkinter_tkapp_dooneevent_impl() argument
2795 _tkinter_tkapp_quit_impl(TkappObject *self) _tkinter_tkapp_quit_impl() argument
2807 _tkinter_tkapp_interpaddr_impl(TkappObject *self) _tkinter_tkapp_interpaddr_impl() argument
2818 _tkinter_tkapp_loadtk_impl(TkappObject *self) _tkinter_tkapp_loadtk_impl() argument
2866 Tkapp_WantObjects(PyObject *self, PyObject *args) Tkapp_WantObjects() argument
2885 _tkinter_tkapp_willdispatch_impl(TkappObject *self) _tkinter_tkapp_willdispatch_impl() argument
2897 Tkapp_Dealloc(PyObject *self) Tkapp_Dealloc() argument
[all...]
/third_party/python/Modules/clinic/
H A D_tkinter.c.h6 "eval($self, script, /)\n"
14 _tkinter_tkapp_eval_impl(TkappObject *self, const char *script);
17 _tkinter_tkapp_eval(TkappObject *self, PyObject *arg) in _tkinter_tkapp_eval() argument
35 return_value = _tkinter_tkapp_eval_impl(self, script); in _tkinter_tkapp_eval()
42 "evalfile($self, fileName, /)\n"
50 _tkinter_tkapp_evalfile_impl(TkappObject *self, const char *fileName);
53 _tkinter_tkapp_evalfile(TkappObject *self, PyObject *arg) in _tkinter_tkapp_evalfile() argument
71 return_value = _tkinter_tkapp_evalfile_impl(self, fileName); in _tkinter_tkapp_evalfile()
78 "record($self, script, /)\n"
86 _tkinter_tkapp_record_impl(TkappObject *self, cons
89 _tkinter_tkapp_record(TkappObject *self, PyObject *arg) _tkinter_tkapp_record() argument
125 _tkinter_tkapp_adderrorinfo(TkappObject *self, PyObject *arg) _tkinter_tkapp_adderrorinfo() argument
185 _tkinter_tkapp_exprstring(TkappObject *self, PyObject *arg) _tkinter_tkapp_exprstring() argument
221 _tkinter_tkapp_exprlong(TkappObject *self, PyObject *arg) _tkinter_tkapp_exprlong() argument
257 _tkinter_tkapp_exprdouble(TkappObject *self, PyObject *arg) _tkinter_tkapp_exprdouble() argument
293 _tkinter_tkapp_exprboolean(TkappObject *self, PyObject *arg) _tkinter_tkapp_exprboolean() argument
338 _tkinter_tkapp_createcommand(TkappObject *self, PyObject *const *args, Py_ssize_t nargs) _tkinter_tkapp_createcommand() argument
379 _tkinter_tkapp_deletecommand(TkappObject *self, PyObject *arg) _tkinter_tkapp_deletecommand() argument
418 _tkinter_tkapp_createfilehandler(TkappObject *self, PyObject *const *args, Py_ssize_t nargs) _tkinter_tkapp_createfilehandler() argument
466 _tkinter_tktimertoken_deletetimerhandler(TkttObject *self, PyObject *Py_UNUSED(ignored)) _tkinter_tktimertoken_deletetimerhandler() argument
484 _tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject *const *args, Py_ssize_t nargs) _tkinter_tkapp_createtimerhandler() argument
516 _tkinter_tkapp_mainloop(TkappObject *self, PyObject *const *args, Py_ssize_t nargs) _tkinter_tkapp_mainloop() argument
550 _tkinter_tkapp_dooneevent(TkappObject *self, PyObject *const *args, Py_ssize_t nargs) _tkinter_tkapp_dooneevent() argument
584 _tkinter_tkapp_quit(TkappObject *self, PyObject *Py_UNUSED(ignored)) _tkinter_tkapp_quit() argument
601 _tkinter_tkapp_interpaddr(TkappObject *self, PyObject *Py_UNUSED(ignored)) _tkinter_tkapp_interpaddr() argument
618 _tkinter_tkapp_loadtk(TkappObject *self, PyObject *Py_UNUSED(ignored)) _tkinter_tkapp_loadtk() argument
635 _tkinter_tkapp_willdispatch(TkappObject *self, PyObject *Py_UNUSED(ignored)) _tkinter_tkapp_willdispatch() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dgecko.py128 def _intern_stack(self, frame_id: int, prefix_id: Optional[int]) -> int:
132 stack_id = self.stackMap.get(key)
135 stack_id = len(self.stackTable)
136 self.stackTable.append(Stack(prefix_id=prefix_id, frame_id=frame_id))
137 self.stackMap[key] = stack_id
140 def _intern_string(self, string: str) -> int:
142 string_id = self.stringMap.get(string)
145 string_id = len(self.stringTable)
146 self.stringTable.append(string)
147 self
[all...]
/third_party/python/Tools/scripts/
H A Dfixdiv.py316 def __init__(self, fp, window=5, lineno=1):
317 self.fp = fp
318 self.window = 5
319 self.lineno = 1
320 self.eoflookahead = 0
321 self.lookahead = []
322 self.buffer = []
323 def fill(self):
324 while len(self.lookahead) < self
[all...]
/third_party/python/Modules/_multiprocessing/clinic/
H A Dsemaphore.c.h8 "acquire($self, /, block=True, timeout=None)\n"
17 _multiprocessing_SemLock_acquire_impl(SemLockObject *self, int blocking,
21 _multiprocessing_SemLock_acquire(SemLockObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _multiprocessing_SemLock_acquire() argument
49 return_value = _multiprocessing_SemLock_acquire_impl(self, blocking, timeout_obj); in _multiprocessing_SemLock_acquire()
60 "release($self, /)\n"
69 _multiprocessing_SemLock_release_impl(SemLockObject *self);
72 _multiprocessing_SemLock_release(SemLockObject *self, PyObject *Py_UNUSED(ignored)) in _multiprocessing_SemLock_release() argument
74 return _multiprocessing_SemLock_release_impl(self); in _multiprocessing_SemLock_release()
82 "acquire($self, /, block=True, timeout=None)\n"
91 _multiprocessing_SemLock_acquire_impl(SemLockObject *self, in
95 _multiprocessing_SemLock_acquire(SemLockObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _multiprocessing_SemLock_acquire() argument
146 _multiprocessing_SemLock_release(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock_release() argument
266 _multiprocessing_SemLock__count(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__count() argument
288 _multiprocessing_SemLock__is_mine(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__is_mine() argument
310 _multiprocessing_SemLock__get_value(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__get_value() argument
332 _multiprocessing_SemLock__is_zero(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__is_zero() argument
354 _multiprocessing_SemLock__after_fork(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__after_fork() argument
376 _multiprocessing_SemLock___enter__(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock___enter__() argument
400 _multiprocessing_SemLock___exit__(SemLockObject *self, PyObject *const *args, Py_ssize_t nargs) _multiprocessing_SemLock___exit__() argument
[all...]
/third_party/python/Lib/json/
H A Dencoder.py105 def __init__(self, *, skipkeys=False, ensure_ascii=True,
148 self.skipkeys = skipkeys
149 self.ensure_ascii = ensure_ascii
150 self.check_circular = check_circular
151 self.allow_nan = allow_nan
152 self.sort_keys = sort_keys
153 self.indent = indent
155 self.item_separator, self.key_separator = separators
157 self
[all...]
/third_party/python/Lib/re/
H A D_parser.py73 def __init__(self):
74 self.flags = 0
75 self.groupdict = {}
76 self.groupwidths = [None] # group 0
77 self.lookbehindgroups = None
78 self.grouprefpos = {}
80 def groups(self):
81 return len(self.groupwidths)
82 def opengroup(self, name=None):
83 gid = self
[all...]
/third_party/typescript/tests/baselines/reference/
H A DrecursiveExportAssignmentAndFindAliasedType7.js4 import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD");
5 var selfVar = self;
9 import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE");
10 export = self;
13 import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
14 export = self;
26 define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleC"], function (require, exports, self) {
28 return self;
31 define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleE"], function (require, exports, self) {
33 return self;
[all...]
/third_party/skia/infra/bots/recipe_modules/builder_name_schema/
H A Dapi.py15 def __init__(self, *args, **kwargs):
16 super(BuilderNameSchemaApi, self).__init__(*args, **kwargs)
19 self.BUILDER_NAME_SCHEMA = builder_name_schema.BUILDER_NAME_SCHEMA
20 self.BUILDER_NAME_SEP = builder_name_schema.BUILDER_NAME_SEP
22 self.BUILDER_ROLE_BUILD = builder_name_schema.BUILDER_ROLE_BUILD
23 self.BUILDER_ROLE_HOUSEKEEPER = builder_name_schema.BUILDER_ROLE_HOUSEKEEPER
24 self.BUILDER_ROLE_INFRA = builder_name_schema.BUILDER_ROLE_INFRA
25 self.BUILDER_ROLE_PERF = builder_name_schema.BUILDER_ROLE_PERF
26 self.BUILDER_ROLE_TEST = builder_name_schema.BUILDER_ROLE_TEST
27 self
[all...]
/third_party/mbedtls/tests/scripts/
H A Ddepends.py71 def __init__(self, options=None):
82 self.red = ('\033[31m', normal)
83 self.green = ('\033[32m', normal)
84 self.cyan = ('\033[36m', normal)
85 self.bold_red = ('\033[1;31m', normal)
86 self.bold_green = ('\033[1;32m', normal)
156 def __init__(self, name, config_settings, commands):
166 self.name = name
167 self.config_settings = config_settings
168 self
[all...]
/third_party/python/Lib/test/support/
H A Dos_helper.py572 def __init__(self, path):
573 self.path = path
575 def __repr__(self):
576 return f'<FakePath {self.path!r}>'
578 def __fspath__(self):
579 if (isinstance(self.path, BaseException) or
580 isinstance(self.path, type) and
581 issubclass(self.path, BaseException)):
582 raise self.path
584 return self
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c1045 memset(&self->prog, 0, sizeof(self->prog)); in FIXTURE_SETUP()
1046 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
1047 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP()
1048 memcpy(self->prog.filter, filter, sizeof(filter)); in FIXTURE_SETUP()
1049 self->prog.len = (unsigned short)ARRAY_SIZE(filter); in FIXTURE_SETUP()
1054 if (self->prog.filter) in FIXTURE_TEARDOWN()
1055 free(self->prog.filter); in FIXTURE_TEARDOWN()
1065 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F_SIGNAL()
1080 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self in TEST_F_SIGNAL()
3765 pid_t self; TEST() local
[all...]
/third_party/icu/icu4c/source/python/icutools/databuilder/
H A D__main__.py125 def __init__(self, args):
127 self.max_parallel = (args.seqmode == "parallel")
130 self.include_uni_core_data = args.include_uni_core_data
133 self.filters_json_data = {}
134 self.filter_dir = "ERROR_NO_FILTER_FILE"
141 self._parse_filter_file(f)
145 self.filter_dir = os.path.abspath(os.path.dirname(args.filter_file))
148 self.coll_han_type = "unihan"
149 if "collationUCAData" in self.filters_json_data:
150 self
[all...]
/third_party/jinja2/
H A Dsandbox.py118 def delete(self):
252 def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
254 self.globals["range"] = safe_range
255 self.binop_table = self.default_binop_table.copy()
256 self.unop_table = self.default_unop_table.copy()
258 def is_safe_attribute(self, obj: t.Any, attr: str, value: t.Any) -> bool:
267 def is_safe_callable(self, obj: t.Any) -> bool:
279 self, contex
[all...]

Completed in 16 milliseconds

1...<<71727374757677787980>>...188