Skip to content

Commit

Permalink
#152 use-consistent-sloc-across-formats
Browse files Browse the repository at this point in the history
  • Loading branch information
ben05allen committed Jul 13, 2024
1 parent 8f4cb8a commit 832a4fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pygount/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ def __init__(self, target_stream):
self.template = "{0}\t{1}\t{2}\t{3}"

def add(self, source_analysis):
source_line_count = source_analysis.code_count + source_analysis.string_count
line_to_write = self.template.format(
source_line_count, source_analysis.language, source_analysis.group, source_analysis.path
source_analysis.code_count, source_analysis.language, source_analysis.group, source_analysis.path
)
self._target_stream.write(line_to_write + os.linesep)

Expand Down

0 comments on commit 832a4fa

Please sign in to comment.