diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-22 14:28:42 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-22 15:05:23 -0400 |
commit | 16abd82b6e87753184e8308c4b2606ff3979f8d3 (patch) | |
tree | 288f6b82ebd9ee864a05db6e66980cc63e205b49 /coverage/annotate.py | |
parent | 63f3e495b184ebd9aa4c9d757fb78ed148580d29 (diff) | |
download | python-coveragepy-git-16abd82b6e87753184e8308c4b2606ff3979f8d3.tar.gz |
style: use double-quotes
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r-- | coverage/annotate.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py index 13dbe9b6..b4a02cb4 100644 --- a/coverage/annotate.py +++ b/coverage/annotate.py @@ -40,8 +40,8 @@ class AnnotateReporter: > h(2) - Executed lines use '>', lines not executed use '!', lines excluded from - consideration use '-'. + Executed lines use ">", lines not executed use "!", lines excluded from + consideration use "-". """ @@ -83,7 +83,7 @@ class AnnotateReporter: else: dest_file = fr.filename + ",cover" - with open(dest_file, 'w', encoding='utf-8') as dest: + with open(dest_file, "w", encoding="utf-8") as dest: i = j = 0 covered = True source = fr.source() @@ -95,20 +95,20 @@ class AnnotateReporter: if i < len(statements) and statements[i] == lineno: covered = j >= len(missing) or missing[j] > lineno if self.blank_re.match(line): - dest.write(' ') + dest.write(" ") elif self.else_re.match(line): - # Special logic for lines containing only 'else:'. + # Special logic for lines containing only "else:". if j >= len(missing): - dest.write('> ') + dest.write("> ") elif statements[i] == missing[j]: - dest.write('! ') + dest.write("! ") else: - dest.write('> ') + dest.write("> ") elif lineno in excluded: - dest.write('- ') + dest.write("- ") elif covered: - dest.write('> ') + dest.write("> ") else: - dest.write('! ') + dest.write("! ") dest.write(line) |