6 import io |
6 import io |
7 import os |
7 import os |
8 import re |
8 import re |
9 |
9 |
10 from coverage.files import flat_rootname |
10 from coverage.files import flat_rootname |
|
11 from coverage.misc import isolate_module |
11 from coverage.report import Reporter |
12 from coverage.report import Reporter |
|
13 |
|
14 os = isolate_module(os) |
|
15 |
12 |
16 |
13 class AnnotateReporter(Reporter): |
17 class AnnotateReporter(Reporter): |
14 """Generate annotated source files showing line coverage. |
18 """Generate annotated source files showing line coverage. |
15 |
19 |
16 This reporter creates annotated copies of the measured source files. Each |
20 This reporter creates annotated copies of the measured source files. Each |