From 858721a9d5a3618b80d10ec71c6c2c32a89b6a7c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 13 Mar 2009 08:00:24 -0400 Subject: No need for coverage.analysis to return the filename, it's a property on the CodeUnit passed in. --- coverage/annotate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/annotate.py') 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: -- cgit v1.2.1