X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=exec_utils.py;h=a440de5375c1546d0bf46835bc00ecada06b7d9d;hb=2bf59f4f017a7497aaf0449bdf77e130abdf36d8;hp=df273352bb793d59f19717c9cb6806134dd5a628;hpb=31c81f6539969a5eba864d3305f9fb7bf716a367;p=python_utils.git diff --git a/exec_utils.py b/exec_utils.py index df27335..a440de5 100644 --- a/exec_utils.py +++ b/exec_utils.py @@ -1,5 +1,7 @@ #!/usr/bin/env python3 +"""Helper methods concerned with executing subprocesses.""" + import atexit import logging import os @@ -137,7 +139,7 @@ def cmd_in_background(command: str, *, silent: bool = False) -> subprocess.Popen def kill_subproc() -> None: try: if subproc.poll() is None: - logger.info(f'At exit handler: killing {subproc} ({command})') + logger.info('At exit handler: killing %s (%s)', subproc, command) subproc.terminate() subproc.wait(timeout=10.0) except BaseException as be: