Skip to content

Commit

Permalink
fix: Strip lines (of \r)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindre-nistad committed Jan 8, 2025
1 parent 6d8dda5 commit 65a4d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def preprocess(file: Path, include_directories: Optional[List[str]] = None) -> O
]
else:
return [
line.decode("utf-8")
line.decode("utf-8").strip()
for line in re.findall(b'^# *[0-9]+ +.*$', res.stdout + res.stderr, re.MULTILINE)
]

Expand Down

0 comments on commit 65a4d47

Please sign in to comment.