Skip to content

Commit 16abd82

Browse files
committed
style: use double-quotes
1 parent 63f3e49 commit 16abd82

File tree

7 files changed

+170
-170
lines changed

7 files changed

+170
-170
lines changed

coverage/annotate.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class AnnotateReporter:
4040
4141
> h(2)
4242
43-
Executed lines use '>', lines not executed use '!', lines excluded from
44-
consideration use '-'.
43+
Executed lines use ">", lines not executed use "!", lines excluded from
44+
consideration use "-".
4545
4646
"""
4747

@@ -83,7 +83,7 @@ def annotate_file(self, fr: FileReporter, analysis: Analysis) -> None:
8383
else:
8484
dest_file = fr.filename + ",cover"
8585

86-
with open(dest_file, 'w', encoding='utf-8') as dest:
86+
with open(dest_file, "w", encoding="utf-8") as dest:
8787
i = j = 0
8888
covered = True
8989
source = fr.source()
@@ -95,20 +95,20 @@ def annotate_file(self, fr: FileReporter, analysis: Analysis) -> None:
9595
if i < len(statements) and statements[i] == lineno:
9696
covered = j >= len(missing) or missing[j] > lineno
9797
if self.blank_re.match(line):
98-
dest.write(' ')
98+
dest.write(" ")
9999
elif self.else_re.match(line):
100-
# Special logic for lines containing only 'else:'.
100+
# Special logic for lines containing only "else:".
101101
if j >= len(missing):
102-
dest.write('> ')
102+
dest.write("> ")
103103
elif statements[i] == missing[j]:
104-
dest.write('! ')
104+
dest.write("! ")
105105
else:
106-
dest.write('> ')
106+
dest.write("> ")
107107
elif lineno in excluded:
108-
dest.write('- ')
108+
dest.write("- ")
109109
elif covered:
110-
dest.write('> ')
110+
dest.write("> ")
111111
else:
112-
dest.write('! ')
112+
dest.write("! ")
113113

114114
dest.write(line)

0 commit comments

Comments
 (0)