mirror of
ssh://devgit.janware.com/janware/proj/jw-python
synced 2026-06-18 13:36:38 +02:00
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6dd594d47b | |||
| fd125f07fe |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 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> |