mirror of
ssh://devgit.janware.com/janware/proj/jw-python
synced 2026-06-18 11:16:39 +02:00
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a85f0929c6 | |||
| 6123a68195 | |||
| 6dd594d47b | |||
| fd125f07fe |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| a85f0929c6 |
Consistently replace def run() by async def run()
Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 6123a68195 |
Cmds.py: Run all commands in asyncio event loop
This commit makee Cmds run all sub-commands in an asyncio event loop. The event loop is currently passed to the commands, which seems unnecessary and looks like it's using a feature which is bound to be deprecated in the future. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 6dd594d47b |
Fix multiple Python 3 compatibility issues
Changes in Python 3 that made the code choke: o basestring is merged into str o print() needs parentesis o Class inheritance syntax changed o Abstract baseclass (ABCMeta) syntax changed o map.iteritems() is replaced by map.items() o Inconsistent use of tabs and spaces are no longer tolerated Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| fd125f07fe |
Add class Cmds
run_sub_commands() was the only way to access subcommands up to now, Cmds.run() adds another interface, an object as a place to add customizations affecting all commands, e.g. global command line options. Signed-off-by: Jan Lindemann <jan@janware.com> |