From: Scott Gasch Date: Sat, 24 Apr 2021 00:16:39 +0000 (-0700) Subject: Minor editing. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ea5adca079e66204e59befdf6bf373a3b5baf7af;p=python_utils.git Minor editing. --- diff --git a/exec_utils.py b/exec_utils.py index 0ed3601..c669f54 100644 --- a/exec_utils.py +++ b/exec_utils.py @@ -25,12 +25,14 @@ def run_silently(command: str) -> None: """Run a command silently but raise subprocess.CalledProcessError if it fails.""" subprocess.run( - command, shell=True, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL, - capture_output=False, check=True + command, shell=True, stderr=subprocess.DEVNULL, + stdout=subprocess.DEVNULL, capture_output=False, check=True ) -def cmd_in_background(command: str, *, silent: bool = False) -> subprocess.Popen: +def cmd_in_background( + command: str, *, silent: bool = False +) -> subprocess.Popen: args = shlex.split(command) if silent: return subprocess.Popen(args,