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

+1 -1
View File
@@ -48,7 +48,7 @@ def openLocked(filename, perms):
#TODO: put section delimiters as separating element of the list
# so that we can process multiple sections in one go
#TODO: add a comment all but provided options as a section option
class IPAChangeConf:
class IPAChangeConf(object):
def __init__(self, name):
self.progname = name
+2 -1
View File
@@ -39,7 +39,8 @@ ACTIONS = ["allow", "deny"]
PERMISSIONS = ["read", "write", "add", "delete", "search", "compare",
"selfwrite", "proxy", "all"]
class ACI:
class ACI(object):
"""
Holds the basic data for an ACI entry, as stored in the cn=accounts
entry in LDAP. Has methods to parse an ACI string and export to an
+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
+1 -1
View File
@@ -102,7 +102,7 @@ class UpgradeMissingVersionError(UpgradeVersionError):
pass
class ReplicaConfig:
class ReplicaConfig(object):
def __init__(self, top_dir=None):
self.realm_name = ""
self.domain_name = ""
+1 -1
View File
@@ -134,7 +134,7 @@ def safe_output(attr, values):
return values
class LDAPUpdate:
class LDAPUpdate(object):
action_keywords = ["default", "add", "remove", "only", "onlyifexist", "deleteentry", "replace", "addifnew", "addifexist"]
def __init__(self, dm_password=None, sub_dict={},
-1
View File
@@ -69,7 +69,6 @@ disable=
line-too-long,
missing-docstring,
multiple-statements,
old-style-class,
superfluous-parens,
too-many-lines,
unidiomatic-typecheck,