mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 18:03:31 +01:00
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6123a68195 | |||
| 6dd594d47b | |||
| fd125f07fe |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 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> |