From a5bf929f14065fcaf66de7d4f3e3dd10b4f617bf Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 10 Feb 2020 19:49:46 +0100 Subject: [PATCH] Add missing async keywords to jwutils.Cmd.run() reimplementations Signed-off-by: Jan Lindemann --- scripts/trim-src.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/trim-src.py b/scripts/trim-src.py index 2192a05..b7a8eed 100644 --- a/scripts/trim-src.py +++ b/scripts/trim-src.py @@ -15,7 +15,7 @@ class TrimSourceCmd(jwutils.Cmd): super(TrimSourceCmd, self).__init__(name, help=help) @abstractmethod - async def _run(self, args, mime, path, contents): + def _run(self, args, mime, path, contents): raise Exception("_run() method not implemented") def add_parser(self, parsers): @@ -72,7 +72,7 @@ class CmdBeautify(TrimSourceCmd): r += line.rstrip() + '\n' return r - async def _run(self, args, mime, path, contents): + def _run(self, args, mime, path, contents): slog(NOTICE, "formatting", path, "of type", mime) method = getattr(self, '_process' + ''.join(s.capitalize() for s in re.split('[/-]', mime))) if method is None: