Strip popen output
This commit is contained in:
parent
4c18fe5089
commit
5805d1ddf3
|
@ -178,7 +178,7 @@ def popen(*args: str) -> str:
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
raise RuntimeError(f"{args[0]}: Process exited with code {proc.returncode}")
|
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]:
|
def readdir(path: str) -> list[str]:
|
||||||
|
|
Loading…
Reference in a new issue