mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -06:00
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:
1 parent
568f9da331
commit
9bc57a01e1
8 files changed
+12
-9
No files matched your search
+2
-1
@@ -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
@@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
|
||||
class Graph():
|
||||
class Graph(object):
|
||||
"""
|
||||
Simple oriented graph structure
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user