Skip to content
Prev Previous commit
Next Next commit
delete redundant condition
There's no need to check for an empty line. Either we hit the line and
wrote the count, we didn't hit the line and wrote an annotation, or we
want to print some spaces to indent the line.
  • Loading branch information
selik committed Nov 1, 2017
commit ca648506752c270f4ed8079aa44623c53f645785
2 changes: 0 additions & 2 deletions Lib/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ def write_results_file(self, path, lines, lnotab, lines_hit, encoding=None):
# #pragma: NO COVER
outfile.write(">>>>>> ")
n_lines += 1
elif rx_blank.match(line):
outfile.write(" ")
else:
outfile.write(" ")
outfile.write(line.expandtabs(8))
Expand Down