mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
c9d87ab9b5
commit
0aceced733
1 changed files with 4 additions and 2 deletions
|
@ -887,7 +887,7 @@ def run_subproc(cmds, captured=False, envs=None):
|
|||
|
||||
specs = cmds_to_specs(cmds, captured=captured, envs=envs)
|
||||
|
||||
if (trace := XSH.env.get("XONSH_TRACE_SUBPROC", False)):
|
||||
if trace := XSH.env.get("XONSH_TRACE_SUBPROC", False):
|
||||
tracer = XSH.env.get("XONSH_TRACE_SUBPROC_FUNC", None)
|
||||
if callable(tracer):
|
||||
tracer(cmds, captured=captured)
|
||||
|
@ -898,7 +898,9 @@ def run_subproc(cmds, captured=False, envs=None):
|
|||
for i, s in enumerate(specs):
|
||||
pcls = s.cls.__module__ + "." + s.cls.__name__
|
||||
pcmd = (
|
||||
[s.args[0].__name__] + s.args[1:] if callable(s.args[0]) else s.args
|
||||
[s.args[0].__name__] + s.args[1:]
|
||||
if callable(s.args[0])
|
||||
else s.args
|
||||
)
|
||||
p = {
|
||||
"cmd": pcmd,
|
||||
|
|
Loading…
Add table
Reference in a new issue