Skip to content

Commit 1e07bb0

Browse files
committed
Reformat file with black
1 parent 2d1c9fc commit 1e07bb0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

command_runner/__init__.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ def kill_childs_mod(
154154
sig = None
155155
### END COMMAND_RUNNER MOD
156156

157-
def _process_killer(process, # type: Union[subprocess.Popen, psutil.Process]
158-
sig, # type: signal.valid_signals
159-
soft_kill # type: bool
160-
):
157+
def _process_killer(
158+
process, # type: Union[subprocess.Popen, psutil.Process]
159+
sig, # type: signal.valid_signals
160+
soft_kill, # type: bool
161+
):
161162
# (...) -> None
162163
"""
163164
Simple abstract process killer that works with signals in order to avoid reused PID race conditions
@@ -182,7 +183,9 @@ def _process_killer(process, # type: Union[subprocess.Popen, psutil.Process]
182183
# pylint: disable=W0703
183184
except Exception:
184185
if itself:
185-
os.kill(pid, 15) # 15 being signal.SIGTERM or SIGKILL depending on the platform
186+
os.kill(
187+
pid, 15
188+
) # 15 being signal.SIGTERM or SIGKILL depending on the platform
186189
return False
187190

188191
for child in current_process.children(recursive=True):

0 commit comments

Comments
 (0)