Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: tools/dom/scripts/databasebuilder.py

Issue 1980573003: fix all instances of "the the" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/try/web/test_case.dart ('k') | tools/get_archive.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import copy 6 import copy
7 import database 7 import database
8 import logging 8 import logging
9 import monitored 9 import monitored
10 import multiprocessing 10 import multiprocessing
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 def _build_signatures_map(self, idl_node_list): 294 def _build_signatures_map(self, idl_node_list):
295 """Creates a hash table mapping signatures to idl_nodes for the 295 """Creates a hash table mapping signatures to idl_nodes for the
296 given list of nodes""" 296 given list of nodes"""
297 res = {} 297 res = {}
298 for idl_node in idl_node_list: 298 for idl_node in idl_node_list:
299 sig = self._sign(idl_node) 299 sig = self._sign(idl_node)
300 if sig is None: 300 if sig is None:
301 continue 301 continue
302 if sig in res: 302 if sig in res:
303 op = res[sig] 303 op = res[sig]
304 # Only report if the the operations that match are either both suppresse d 304 # Only report if the operations that match are either both suppressed
305 # or both not suppressed. Optional args aren't part of type signature 305 # or both not suppressed. Optional args aren't part of type signature
306 # for this routine. Suppressing a non-optional type and supplementing 306 # for this routine. Suppressing a non-optional type and supplementing
307 # with an optional type appear the same. 307 # with an optional type appear the same.
308 if idl_node.is_fc_suppressed == op.is_fc_suppressed: 308 if idl_node.is_fc_suppressed == op.is_fc_suppressed:
309 raise RuntimeError('Warning: Multiple members have the same ' 309 raise RuntimeError('Warning: Multiple members have the same '
310 ' signature: "%s"' % sig) 310 ' signature: "%s"' % sig)
311 res[sig] = idl_node 311 res[sig] = idl_node
312 return res 312 return res
313 313
314 def _get_parent_interfaces(self, interface): 314 def _get_parent_interfaces(self, interface):
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 | columns[0] | columns[1] | columns[2] | ... | 1022 | columns[0] | columns[1] | columns[2] | ... |
1023 """ 1023 """
1024 if len(columns) > 0: 1024 if len(columns) > 0:
1025 for column in columns: 1025 for column in columns:
1026 value = '' if not column else column 1026 value = '' if not column else column
1027 sys.stdout.write('|{0:^{1}}'.format(value, self._TABULATE_WIDTH())) 1027 sys.stdout.write('|{0:^{1}}'.format(value, self._TABULATE_WIDTH()))
1028 else: 1028 else:
1029 sys.stdout.write('|{0:^{1}}'.format('', self._TABULATE_WIDTH())) 1029 sys.stdout.write('|{0:^{1}}'.format('', self._TABULATE_WIDTH()))
1030 1030
1031 sys.stdout.write('|\n') 1031 sys.stdout.write('|\n')
OLDNEW
« no previous file with comments | « tests/try/web/test_case.dart ('k') | tools/get_archive.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698