summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patternutils/commands/targs.py4
1 files 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__":