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: