From 983a7c51d1f7326e18a3b91557876c6b4deb8d67 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 18:47:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xonsh/procs/specs.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/xonsh/procs/specs.py b/xonsh/procs/specs.py index 9726c0251..e74d3865e 100644 --- a/xonsh/procs/specs.py +++ b/xonsh/procs/specs.py @@ -892,13 +892,19 @@ def run_subproc(cmds, captured=False, envs=None): if callable(tracer): tracer(cmds, captured=captured) else: - r = {"cmds":cmds, "captured": captured} + r = {"cmds": cmds, "captured": captured} print(f"Trace run_subproc({repr(r)}):", file=sys.stderr) for i, s in enumerate(specs): - cls = s.cls.__module__ + '.' + s.cls.__name__ - p = {"cmd": s.args, "cls":cls, "alias":s.alias_name, "bin":s.binary_loc, "bg":s.background, "threadable": s.threadable} - print(f'{i}: {repr(p)}') - + cls = s.cls.__module__ + "." + s.cls.__name__ + p = { + "cmd": s.args, + "cls": cls, + "alias": s.alias_name, + "bin": s.binary_loc, + "bg": s.background, + "threadable": s.threadable, + } + print(f"{i}: {repr(p)}") cmds = [ _flatten_cmd_redirects(cmd) if isinstance(cmd, list) else cmd for cmd in cmds