Mercurial > hg
comparison tests/coverage.py @ 10319:86a6bc519592
coverage.py: fixed syntax error
author | Henri Wiechers <hwiechers@gmail.com> |
---|---|
date | Mon, 01 Feb 2010 22:29:11 +0200 |
parents | 08a0f04b56bd |
children | e433002acb05 |
comparison
equal
deleted
inserted
replaced
10318:325a6aa95eea | 10319:86a6bc519592 |
---|---|
643 tree = tree[-1] | 643 tree = tree[-1] |
644 | 644 |
645 def find_docstring_pass_pair(self, tree, spots): | 645 def find_docstring_pass_pair(self, tree, spots): |
646 for i in range(1, len(tree)): | 646 for i in range(1, len(tree)): |
647 if (self.is_string_constant(tree[i]) and | 647 if (self.is_string_constant(tree[i]) and |
648 self.is_pass_stmt(tree[i + 1]): | 648 self.is_pass_stmt(tree[i + 1])): |
649 first_line = self.first_line_of_tree(tree[i]) | 649 first_line = self.first_line_of_tree(tree[i]) |
650 last_line = self.last_line_of_tree(tree[i + 1]) | 650 last_line = self.last_line_of_tree(tree[i + 1]) |
651 self.record_multiline(spots, first_line, last_line) | 651 self.record_multiline(spots, first_line, last_line) |
652 | 652 |
653 def is_string_constant(self, tree): | 653 def is_string_constant(self, tree): |