From 3ce03d17c14161fb04c53fb0cae89b256db8debc Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 12 Jun 2024 14:55:37 +0200 Subject: [PATCH] fix --- rwx/ps/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rwx/ps/__init__.py b/rwx/ps/__init__.py index 6471fff..b66c21b 100644 --- a/rwx/ps/__init__.py +++ b/rwx/ps/__init__.py @@ -14,7 +14,9 @@ def get_tuples_args(tuples) -> list[str]: def run(*tuples) -> subprocess.CompletedProcess: - return subprocess.run(get_tuples_args(tuples), capture_output=False, check=True) + return subprocess.run( + get_tuples_args(tuples), capture_output=False, check=True + ) def run_line(*tuples, charset: str = txt.CHARSET) -> str: @@ -23,6 +25,8 @@ def run_line(*tuples, charset: str = txt.CHARSET) -> str: def run_lines(*tuples, charset: str = txt.CHARSET) -> list[str]: - process = subprocess.run(get_tuples_args(tuples), capture_output=True, check=True) + process = subprocess.run( + get_tuples_args(tuples), capture_output=True, check=True + ) string = process.stdout.decode(charset) return string.rstrip().splitlines()