mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
Add missing async keywords to jwutils.Cmd.run() reimplementations
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
f04a9c4fb2
commit
a5bf929f14
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue