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

Side by Side Diff: src/trusted/validator_arm/dgen_add_patterns.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 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 | « src/trusted/validator_arm/dgen_actuals.py ('k') | src/trusted/validator_arm/dgen_baselines.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/env python
2 # 2 #
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 """ 8 """
9 Checks (rule) patterns associated with rows in tables, and adds an 9 Checks (rule) patterns associated with rows in tables, and adds an
10 additional column to each row (in each table) which captures 10 additional column to each row (in each table) which captures
11 constraints in rule pattern. 11 constraints in rule pattern.
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 # Restore state back to before matching the row. 263 # Restore state back to before matching the row.
264 self.visited_rows.pop() 264 self.visited_rows.pop()
265 self.unmatched_pattern = previous_unmatched 265 self.unmatched_pattern = previous_unmatched
266 266
267 def _print_trace(self): 267 def _print_trace(self):
268 for i in range(0, len(self.visited_tables)): 268 for i in range(0, len(self.visited_tables)):
269 print "Table %s:" % self.visited_tables[i].name 269 print "Table %s:" % self.visited_tables[i].name
270 if i < len(self.visited_rows): 270 if i < len(self.visited_rows):
271 print " %s" % self.visited_rows[i].patterns 271 print " %s" % self.visited_rows[i].patterns
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/dgen_actuals.py ('k') | src/trusted/validator_arm/dgen_baselines.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698