summaryrefslogtreecommitdiff
path: root/coverage/annotate.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-03-13 08:00:24 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-03-13 08:00:24 -0400
commit858721a9d5a3618b80d10ec71c6c2c32a89b6a7c (patch)
tree421805abbc8eca9412be61c295813f67bedb9f9c /coverage/annotate.py
parent67a7f3e65aab32763a2b3df2295c5c698ce001f0 (diff)
downloadpython-coveragepy-git-858721a9d5a3618b80d10ec71c6c2c32a89b6a7c.tar.gz
No need for coverage.analysis to return the filename, it's a property on the CodeUnit passed in.
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r--coverage/annotate.py4
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: