diff options
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r-- | coverage/annotate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py index c4fe810f..7cf48aa2 100644 --- a/coverage/annotate.py +++ b/coverage/annotate.py @@ -19,8 +19,8 @@ class AnnotateReporter(Reporter): self.directory = directory for cu in self.code_units: try: - filename, statements, excluded, missing, _ = self.coverage.analyze(cu) - self.annotate_file(filename, statements, excluded, missing) + statements, excluded, missing, _ = self.coverage.analyze(cu) + self.annotate_file(cu.filename, statements, excluded, missing) except KeyboardInterrupt: raise except: |