summaryrefslogtreecommitdiff
path: root/coverage/annotate.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-04-19 16:24:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-04-19 16:24:10 -0400
commit9f8fc4e8f9bf1da99728c87ce3118168085b76a1 (patch)
tree0b92ae6686805b5879844a68c03b115b7f438c77 /coverage/annotate.py
parentca1b25a3089a7db3d5a08c2a317a2f689f2ff34f (diff)
downloadpython-coveragepy-9f8fc4e8f9bf1da99728c87ce3118168085b76a1.tar.gz
Line length < 80.
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r--coverage/annotate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py
index c0c6980..b861a6f 100644
--- a/coverage/annotate.py
+++ b/coverage/annotate.py
@@ -40,10 +40,10 @@ class AnnotateReporter(Reporter):
filename = cu.filename
source = open(filename, 'r')
if self.directory:
- dest_file = os.path.join(self.directory, cu.flat_rootname()) + ".py"
+ dest_file = os.path.join(self.directory, cu.flat_rootname())
+ dest_file += ".py,cover"
else:
- dest_file = filename
- dest_file += ",cover"
+ dest_file = filename + ",cover"
dest = open(dest_file, 'w')
lineno = 0