feat: only rstrip newlines in read files
This commit is contained in:
@@ -54,7 +54,7 @@ def get(
|
|||||||
path.parent.mkdir(parents=True, exist_ok=True)
|
path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
return f.read().strip()
|
return f.read().rstrip("\n")
|
||||||
|
|
||||||
|
|
||||||
def get_or_download(
|
def get_or_download(
|
||||||
|
|||||||
Reference in New Issue
Block a user