/third_party/node/tools/gyp/pylib/gyp/ |
H A D | ninja_syntax.py | 20 def __init__(self, output, width=78): 21 self.output = output 22 self.width = width 24 def newline(self): 25 self.output.write("\n") 27 def comment(self, text): 28 for line in textwrap.wrap(text, self.width - 2): 29 self.output.write("# " + line + "\n") 31 def variable(self, key, value, indent=0): 36 self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | ninja_syntax.py | 20 def __init__(self, output, width=78): 21 self.output = output 22 self.width = width 24 def newline(self): 25 self.output.write("\n") 27 def comment(self, text): 28 for line in textwrap.wrap(text, self.width - 2): 29 self.output.write("# " + line + "\n") 31 def variable(self, key, value, indent=0): 36 self [all...] |
/third_party/python/Tools/clinic/ |
H A D | cpp.py | 27 def __init__(self, filename=None, *, verbose=False): 28 self.stack = [] 29 self.in_comment = False 30 self.continuation = None 31 self.line_number = 0 32 self.filename = filename 33 self.verbose = verbose 35 def __repr__(self): 38 str(id(self)), 39 " line=", str(self [all...] |
/third_party/python/Lib/ |
H A D | graphlib.py | 12 def __init__(self, node): 14 self.node = node 19 self.npredecessors = 0 23 self.successors = [] 44 def __init__(self, graph=None): 45 self._node2info = {} 46 self._ready_nodes = None 47 self._npassedout = 0 48 self._nfinished = 0 52 self [all...] |
/third_party/python/Lib/test/test_importlib/import_/ |
H A D | test___package__.py | 37 def import_module(self, globals_): 38 with self.mock_modules('pkg.__init__', 'pkg.fake') as importer: 40 self.__import__('pkg.fake') 41 module = self.__import__('', 46 def test_using___package__(self): 48 module = self.import_module({'__package__': 'pkg.fake'}) 49 self.assertEqual(module.__name__, 'pkg') 51 def test_using___name__(self): 55 module = self.import_module({'__name__': 'pkg.fake', 57 self [all...] |
/third_party/vk-gl-cts/modules/gles3/scripts/ |
H A D | gen-qualification_order.py | 108 def __init__(self, compileFail, invariantInput, paramList): 109 self.compileFail = 'expect compile_fail' if compileFail else 'expect pass' 110 self.name = '' 116 self.name += p.name 118 self.name += '_' 125 self.name += "_invariant_input" 133 self.variableVtx = variables.replace("anon_centroid", "out") 134 self.variableFrg = variables.replace("anon_centroid", "in") 135 self.variableVtx = self [all...] |
/third_party/python/Lib/idlelib/ |
H A D | replace.py | 37 def __init__(self, root, engine): 51 self.replvar = StringVar(root) 52 self.insert_tags = None 54 def open(self, text, insert_tags=None): 58 search to include the current selection (self.ok). 63 SearchDialogBase.open(self, text) 74 self.show_hit(first, last) 75 self.ok = True 76 self.insert_tags = insert_tags 78 def create_entries(self) [all...] |
H A D | autocomplete.py | 40 def __init__(self, editwin=None, tags=None): 41 self.editwin = editwin 43 self.text = editwin.text 44 self.tags = tags 45 self.autocompletewindow = None 49 self._delayed_completion_id = None 50 self._delayed_completion_index = None 57 def _make_autocomplete_window(self): # Makes mocking easier. 58 return autocomplete_w.AutoCompleteWindow(self.text, tags=self [all...] |
/third_party/python/Lib/test/ |
H A D | test_tabnanny.py | 66 def __init__(self, source_code='', directory=None): 67 self.source_code = source_code 68 self.dir = directory 70 def __enter__(self): 72 mode='w', dir=self.dir, suffix=".py", delete=False 74 f.write(self.source_code) 75 self.file_path = f.name 76 return self.file_path 78 def __exit__(self, exc_type, exc_value, exc_traceback): 79 unlink(self [all...] |
H A D | test_uu.py | 31 def __init__(self, initial_value="", encoding="utf-8", 33 super(FakeIO, self).__init__(io.BytesIO(), 37 self._encoding = encoding 38 self._errors = errors 42 self.write(initial_value) 43 self.seek(0) 45 def getvalue(self): 46 self.flush() 47 return self.buffer.getvalue().decode(self [all...] |
H A D | test_print.py | 36 def __init__(self, x): 37 self.x = x 39 def __str__(self): 40 return self.x 46 def check(self, expected, args, 61 self.assertEqual(t.getvalue(), expected) 63 def test_print(self): 68 self.check(expected, args, sep=sep, end=end) 72 self.check('', args, sep=sep, end=end, file=o) 75 self [all...] |
H A D | test_aifc.py | 152 def test_skipunknown(self): 158 def test_close_opened_files_on_error(self): 160 with check_no_resource_warning(self): 161 with self.assertRaises(aifc.Error): 164 self.f = aifc.open(non_aifc_file, 'rb') 170 with self.assertRaises(RuntimeError): 171 self.fout = aifc.open(TESTFN, 'wb') 173 def test_params_added(self): 174 f = self.f = aifc.open(TESTFN, 'wb') 180 self [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | test_utils.py | 19 def test_naive_datetime(self): 20 self.assertEqual(utils.format_datetime(self.naive_dt), 21 self.datestring + ' -0000') 23 def test_aware_datetime(self): 24 self.assertEqual(utils.format_datetime(self.aware_dt), 25 self.datestring + self.offsetstring) 27 def test_usegmt(self) [all...] |
/third_party/python/Tools/demo/ |
H A D | queens.py | 16 def __init__(self, n=N): 17 self.n = n 18 self.reset() 20 def reset(self): 21 n = self.n 22 self.y = [None] * n # Where is the queen in column x 23 self.row = [0] * n # Is row[y] safe? 24 self.up = [0] * (2*n-1) # Is upward diagonal[x-y] safe? 25 self.down = [0] * (2*n-1) # Is downward diagonal[x+y] safe? 26 self [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | vkconventions.py | 49 def null(self): 53 def formatVersion(self, name, apivariant, major, minor): 65 def formatExtension(self, name): 70 def struct_macro(self): 79 def constFlagBits(self): 84 def structtype_member_name(self): 89 def nextpointer_member_name(self): 94 def valid_pointer_prefix(self): 98 def is_structure_type_member(self, paramtype, paramname): 100 return paramtype == 'VkStructureType' and paramname == self [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_pkg_import.py | 14 def __init__(self, *args, **kw): 15 self.package_name = 'PACKAGE_' 16 while self.package_name in sys.modules: 17 self.package_name += random.choice(string.ascii_letters) 18 self.module_name = self.package_name + '.foo' 19 unittest.TestCase.__init__(self, *args, **kw) 21 def remove_modules(self): 22 for module_name in (self.package_name, self [all...] |
/third_party/vulkan-headers/registry/ |
H A D | vkconventions.py | 49 def null(self): 53 def formatVersion(self, name, apivariant, major, minor): 65 def formatExtension(self, name): 70 def struct_macro(self): 79 def constFlagBits(self): 84 def structtype_member_name(self): 89 def nextpointer_member_name(self): 94 def valid_pointer_prefix(self): 98 def is_structure_type_member(self, paramtype, paramname): 100 return paramtype == 'VkStructureType' and paramname == self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | specifiers.py | 54 def __str__(self) -> str: 61 def __hash__(self) -> int: 67 def __eq__(self, other: object) -> bool: 77 def prereleases(self) -> Optional[bool]: 85 def prereleases(self, value: bool) -> None: 92 def contains(self, item: str, prereleases: Optional[bool] = None) -> bool: 99 self, iterable: Iterable[UnparsedVersionVar], prereleases: Optional[bool] = None 230 def __init__(self, spec: str = "", prereleases: Optional[bool] = None) -> None: 243 match = self._regex.search(spec) 247 self [all...] |
H A D | version.py | 70 def __hash__(self) -> int: 71 return hash(self._key) 76 def __lt__(self, other: "_BaseVersion") -> bool: 80 return self._key < other._key 82 def __le__(self, other: "_BaseVersion") -> bool: 86 return self._key <= other._key 88 def __eq__(self, other: object) -> bool: 92 return self._key == other._key 94 def __ge__(self, other: "_BaseVersion") -> bool: 98 return self [all...] |
/third_party/python/Tools/peg_generator/pegen/ |
H A D | parser.py | 24 def logger_wrapper(self: P, *args: object) -> T: 25 if not self._verbose: 26 return method(self, *args) 28 fill = " " * self._level 29 print(f"{fill}{method_name}({argsr}) .... (looking at {self.showpeek()})") 30 self._level += 1 31 tree = method(self, *args) 32 self._level -= 1 44 def memoize_wrapper(self: P, *args: object) -> T: 45 mark = self [all...] |
/third_party/python/Modules/_sqlite/ |
H A D | cursor.c | 37 #define clinic_state() (pysqlite_get_state_by_type(Py_TYPE(self))) 89 pysqlite_cursor_init_impl(pysqlite_Cursor *self, in pysqlite_cursor_init_impl() argument 93 if (!check_cursor_locked(self)) { in pysqlite_cursor_init_impl() 98 Py_XSETREF(self->connection, connection); in pysqlite_cursor_init_impl() 99 Py_CLEAR(self->statement); in pysqlite_cursor_init_impl() 100 Py_CLEAR(self->row_cast_map); in pysqlite_cursor_init_impl() 103 Py_XSETREF(self->description, Py_None); in pysqlite_cursor_init_impl() 106 Py_XSETREF(self->lastrowid, Py_None); in pysqlite_cursor_init_impl() 108 self->arraysize = 1; in pysqlite_cursor_init_impl() 109 self in pysqlite_cursor_init_impl() 129 stmt_reset(pysqlite_Statement *self) stmt_reset() argument 147 cursor_traverse(pysqlite_Cursor *self, visitproc visit, void *arg) cursor_traverse() argument 160 cursor_clear(pysqlite_Cursor *self) cursor_clear() argument 177 cursor_dealloc(pysqlite_Cursor *self) cursor_dealloc() argument 214 pysqlite_build_row_cast_map(pysqlite_Cursor* self) pysqlite_build_row_cast_map() argument 294 _pysqlite_build_column_name(pysqlite_Cursor *self, const char *colname) _pysqlite_build_column_name() argument 323 _pysqlite_fetch_one_row(pysqlite_Cursor* self) _pysqlite_fetch_one_row() argument 480 begin_transaction(pysqlite_Connection *self) begin_transaction() argument 509 get_statement_from_cache(pysqlite_Cursor *self, PyObject *operation) get_statement_from_cache() argument 530 bind_param(pysqlite_state *state, pysqlite_Statement *self, int pos, PyObject *parameter) bind_param() argument 634 bind_parameters(pysqlite_state *state, pysqlite_Statement *self, PyObject *parameters) bind_parameters() argument 774 stmt_mark_dirty(pysqlite_Statement *self) stmt_mark_dirty() argument 780 _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation, PyObject* second_argument) _pysqlite_query_execute() argument 1001 pysqlite_cursor_execute_impl(pysqlite_Cursor *self, PyObject *sql, PyObject *parameters) pysqlite_cursor_execute_impl() argument 1019 pysqlite_cursor_executemany_impl(pysqlite_Cursor *self, PyObject *sql, PyObject *seq_of_parameters) pysqlite_cursor_executemany_impl() argument 1036 pysqlite_cursor_executescript_impl(pysqlite_Cursor *self, const char *sql_script) pysqlite_cursor_executescript_impl() argument 1102 pysqlite_cursor_iternext(pysqlite_Cursor *self) pysqlite_cursor_iternext() argument 1159 pysqlite_cursor_fetchone_impl(pysqlite_Cursor *self) pysqlite_cursor_fetchone_impl() argument 1182 pysqlite_cursor_fetchmany_impl(pysqlite_Cursor *self, int maxrows) pysqlite_cursor_fetchmany_impl() argument 1221 pysqlite_cursor_fetchall_impl(pysqlite_Cursor *self) pysqlite_cursor_fetchall_impl() argument 1258 pysqlite_cursor_setinputsizes(pysqlite_Cursor *self, PyObject *sizes) pysqlite_cursor_setinputsizes() argument 1275 pysqlite_cursor_setoutputsize_impl(pysqlite_Cursor *self, PyObject *size, PyObject *column) pysqlite_cursor_setoutputsize_impl() argument 1289 pysqlite_cursor_close_impl(pysqlite_Cursor *self) pysqlite_cursor_close_impl() argument [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_frombuffer.py | 9 def __init__(self): 10 self._init_called = True 13 def test_from_buffer(self): 18 self.assertEqual(y.c_int, a[0]) 19 self.assertFalse(y.init_called) 21 self.assertEqual(x[:], a.tolist()) 24 self.assertEqual(x[:], a.tolist()) 26 self.assertRaises(BufferError, a.append, 100) 27 self.assertRaises(BufferError, a.pop) 34 self [all...] |
/third_party/python/Doc/tools/extensions/ |
H A D | suspicious.py | 61 def __init__(self, docname, lineno, issue, line): 63 self.docname = docname # document to which this rule applies 64 self.lineno = lineno # line number in the original source; 67 self.issue = issue # the markup fragment that triggered this rule 68 self.line = line # text of the container element (single line only) 69 self.used = False 71 def __repr__(self): 72 return '{0.docname},,{0.issue},{0.line}'.format(self) 88 def init(self): 90 self [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_configdialog.py | 55 def test_deactivate_current_config(self): 58 def activate_config_changes(self): 64 def test_click_ok(self): 73 def test_click_apply(self): 85 def test_click_cancel(self): 90 self.assertEqual(changes['main'], {}) 91 self.assertEqual(d.destroy.called, 1) 94 def test_click_help(self): 100 self.assertEqual(title, 'Help for IDLE preferences') 101 self [all...] |
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | glX_server_table.py | 53 def __init__(self, name, do_size_check): 54 self.name_base = name 55 self.do_size_check = do_size_check 58 self.max_bits = 1 59 self.next_opcode_threshold = (1 << self.max_bits) 60 self.max_opcode = 0 62 self.functions = {} 63 self.lookup_table = [] 66 self [all...] |