move 'util.Formatter' into its own 'formatter' module

This commit is contained in:
Mike Fährmann
2021-09-27 02:37:04 +02:00
parent 9377543162
commit 74145467dd
9 changed files with 474 additions and 428 deletions

View File

@@ -9,7 +9,7 @@
"""Execute processes"""
from .common import PostProcessor
from .. import util
from .. import util, formatter
import subprocess
@@ -33,7 +33,7 @@ class ExecPP(PostProcessor):
self.args = args
execute = self.exec_string
else:
self.args = [util.Formatter(arg) for arg in args]
self.args = [formatter.parse(arg) for arg in args]
execute = self.exec_list
events = options.get("event")