pylint: fix old-style-class

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Jan Barta authored and Martin Basti committed 2016-09-22 16:52:57 +02:00
1 parent 568f9da331
commit 9bc57a01e1
8 files changed
+12 -9

No files matched your search

+2 -1
View File
@@ -126,7 +126,8 @@ def verify_args(parser, args, needed_args = None):
elif len_have < len_need:
parser.error("no %s specified" % needed_list[len_have])
class IPAConfig:
class IPAConfig(object):
def __init__(self):
self.default_realm = None
self.default_server = []
+1 -1
View File
@@ -3,7 +3,7 @@
#
class Graph():
class Graph(object):
"""
Simple oriented graph structure
+4 -2
View File
@@ -42,7 +42,8 @@ SYSRESTORE_PATH = paths.TMP
SYSRESTORE_INDEXFILE = "sysrestore.index"
SYSRESTORE_STATEFILE = "sysrestore.state"
class FileStore:
class FileStore(object):
"""Class for handling backup and restore of files"""
def __init__(self, path = SYSRESTORE_PATH, index_file = SYSRESTORE_INDEXFILE):
@@ -290,7 +291,8 @@ class FileStore:
return True
class StateFile:
class StateFile(object):
"""A metadata file for recording system state which can
be backed up and later restored.
StateFile gets reloaded every time to prevent loss of information