diff options
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r-- | coverage/annotate.py | 6 |
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 |