OLD | NEW |
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 Loading... |
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 |
OLD | NEW |