mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
Consistently replace def run() by async def run()
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
8a74e030dc
commit
a85f0929c6
4 changed files with 9 additions and 9 deletions
|
|
@ -7,14 +7,14 @@ ABC = abc.ABCMeta('ABC', (object,), {'__slots__': ()})
|
|||
class Cmd(ABC): # export
|
||||
|
||||
@abc.abstractmethod
|
||||
def run(self, args):
|
||||
async def run(self, args):
|
||||
pass
|
||||
|
||||
def __init__(self, name, help):
|
||||
self.name = name
|
||||
self.help = help
|
||||
|
||||
def _run(self, args):
|
||||
async def _run(self, args):
|
||||
pass
|
||||
|
||||
def add_parser(self, parsers):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue