Skip to content

Commit

Permalink
Merge pull request #8 from daschuer/line-length
Browse files Browse the repository at this point in the history
replace invalid characters from Git diff
  • Loading branch information
ywwg authored Jun 11, 2020
2 parents 54ce176 + 22529be commit 94b26c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/line_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_git_added_lines() -> LineGenerator:
current_file = None
current_lineno = None
lines_left = 0
for line in str(proc.stdout).splitlines():
for line in proc.stdout.decode(errors="replace").splitlines():
match_file = re.match(r"^\+\+\+ b/(.*)$", line)
if match_file:
current_file = match_file.group(1)
Expand Down

0 comments on commit 94b26c6

Please sign in to comment.