mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
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>
This commit is contained in:
parent
6eaad195a8
commit
6dd594d47b
8 changed files with 44 additions and 32 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import Object
|
||||
import jwutils.log
|
||||
import jwutils
|
||||
import importlib
|
||||
import inspect
|
||||
import re
|
||||
import pickle
|
||||
|
||||
class Cmds(Object.Object): # export
|
||||
class Cmds: # export
|
||||
|
||||
def __init__(self, description = '', filter = '^Cmd.*', modules=None):
|
||||
self.__description = description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue