diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-23 22:35:51 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-23 22:35:51 -0400 |
commit | 7c66441eab3af17539c478a2cb4e19cd93ba0cf4 (patch) | |
tree | 2e9232396991a428fa3afa308550fd4228f8f34f /coverage/parser.py | |
parent | b2d5b1a2e3bfa3b907034cf07ed4a173081ce976 (diff) | |
download | python-coveragepy-git-7c66441eab3af17539c478a2cb4e19cd93ba0cf4.tar.gz |
enumerate has a start parameter!
--HG--
branch : 4.0
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 7e194705..f2885c07 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -79,9 +79,9 @@ class CodeParser(object): """ regex_c = re.compile(join_regex(regexes)) matches = set() - for i, ltext in enumerate(self.lines): + for i, ltext in enumerate(self.lines, start=1): if regex_c.search(ltext): - matches.add(i+1) + matches.add(i) return matches def _raw_parse(self): |