From 65e6e2b50a5a01efae42df1fdfb0f210210ce110 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 6 May 2021 19:18:46 +0200 Subject: Fix targs --- patternutils/commands/targs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py index c99a6aa..3da6552 100644 --- a/patternutils/commands/targs.py +++ b/patternutils/commands/targs.py @@ -105,7 +105,7 @@ def targs( if editor: try: - commands = utils.edit(commands) + commands = list(utils.edit(commands).values()) except RuntimeError: click.secho("Your edit is not parseable!", fg="red", err=True) raise SystemExit @@ -131,7 +131,7 @@ def targs( patched_run_command(r) else: with multiprocessing.Pool(max_procs) as p: - p.map(patched_run_command, commands.values()) + p.map(patched_run_command, commands) if __name__ == "__main__": -- cgit v1.3.1