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 /lab/parser.py | |
parent | b2d5b1a2e3bfa3b907034cf07ed4a173081ce976 (diff) | |
download | python-coveragepy-git-7c66441eab3af17539c478a2cb4e19cd93ba0cf4.tar.gz |
enumerate has a start parameter!
--HG--
branch : 4.0
Diffstat (limited to 'lab/parser.py')
-rw-r--r-- | lab/parser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lab/parser.py b/lab/parser.py index 4e19d411..a8e03eec 100644 --- a/lab/parser.py +++ b/lab/parser.py @@ -86,8 +86,7 @@ class ParserMain(object): exit_counts = cp.exit_counts() - for i, ltext in enumerate(cp.lines): - lineno = i+1 + for lineno, ltext in enumerate(cp.lines, start=1): m0 = m1 = m2 = m3 = a = ' ' if lineno in cp.statement_starts: m0 = '-' |