summaryrefslogtreecommitdiff
path: root/exec_utils.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-04-23 17:16:39 -0700
committerScott Gasch <[email protected]>2021-04-23 17:16:39 -0700
commitea5adca079e66204e59befdf6bf373a3b5baf7af (patch)
treef91fbc8798db61ac478afd94a2fed00a75a4a75f /exec_utils.py
parent37dea8cb5d6adc9a4251949ea78a9b14620921ff (diff)
Minor editing.
Diffstat (limited to 'exec_utils.py')
-rw-r--r--exec_utils.py8
1 files changed, 5 insertions, 3 deletions
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,