Strip popen output

This commit is contained in:
Sleepy Monax 2024-01-10 11:00:03 +01:00
parent 4c18fe5089
commit 5805d1ddf3

View file

@ -178,7 +178,7 @@ def popen(*args: str) -> str:
if proc.returncode != 0:
raise RuntimeError(f"{args[0]}: Process exited with code {proc.returncode}")
return proc.stdout.decode("utf-8")
return proc.stdout.decode("utf-8").strip()
def readdir(path: str) -> list[str]: