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
commitffd533e246072415e0793c67946b70e61e524548 (patch)
treed408975c9443f4753305342cc744a9809eecb3cd /coverage/annotate.py
parent0827ad1c07f6c7e1eb14b7b99484f0e141192642 (diff)
downloadpython-coveragepy-ffd533e246072415e0793c67946b70e61e524548.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 c4fe810..7cf48aa 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: