Skip to content

Commit

Permalink
Merge pull request #27 from henryiii/patch-1
Browse files Browse the repository at this point in the history
Fix empty lines being added on Windows.
  • Loading branch information
pradyunsg authored Feb 2, 2021
2 parents 4b23977 + e565929 commit b110ec5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vendoring/tasks/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import re
from dataclasses import dataclass
from os import linesep
from pathlib import Path
from typing import List, Optional

Expand Down Expand Up @@ -85,4 +84,4 @@ def update_requirements(config: Configuration, package: Optional[str]) -> None:

UI.log(f"Rewriting {requirements}")
with requirements.open("w", encoding="utf-8") as f:
f.writelines(f"{p}{linesep}" for p in packages)
f.writelines(f"{p}\n" for p in packages)

0 comments on commit b110ec5

Please sign in to comment.