diff options
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/html.py b/coverage/html.py index d8779233..e1966bfb 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -186,8 +186,7 @@ class HtmlReporter(Reporter): lines = [] - for lineno, line in enumerate(source_token_lines(source)): - lineno += 1 # 1-based line numbers. + for lineno, line in enumerate(source_token_lines(source), start=1): # Figure out how to mark this line. line_class = [] annotate_html = "" |