mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +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):
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class Cmds: # export
|
|||
cmd.add_parser(subparsers)
|
||||
|
||||
async def __run(self):
|
||||
#def __run(self):
|
||||
#async def __run(self):
|
||||
args = self.__parser.parse_args()
|
||||
jwutils.log.set_level(args.log_level)
|
||||
jwutils.log.set_flags(args.log_flags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue