diff options
author | Jan Barta <55042barta@sstebrno.eu> | 2016-06-03 12:45:01 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-09-22 16:52:57 +0200 |
commit | 9bc57a01e1c0942e1a94ac0d948c8c5f8c0d4dcc (patch) | |
tree | 75e4df938295786de5cd715ddd6cdbceb570aba1 /ipapython | |
parent | 568f9da331af14e5f05764c46f51a0410da1e49c (diff) | |
download | freeipa-9bc57a01e1c0942e1a94ac0d948c8c5f8c0d4dcc.tar.gz freeipa-9bc57a01e1c0942e1a94ac0d948c8c5f8c0d4dcc.tar.xz freeipa-9bc57a01e1c0942e1a94ac0d948c8c5f8c0d4dcc.zip |
pylint: fix old-style-class
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/config.py | 3 | ||||
-rw-r--r-- | ipapython/graph.py | 2 | ||||
-rw-r--r-- | ipapython/sysrestore.py | 6 |
3 files changed, 7 insertions, 4 deletions
diff --git a/ipapython/config.py b/ipapython/config.py index 70afaffa2..38e1087f6 100644 --- a/ipapython/config.py +++ b/ipapython/config.py @@ -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 = [] diff --git a/ipapython/graph.py b/ipapython/graph.py index b4373abea..0e06a0831 100644 --- a/ipapython/graph.py +++ b/ipapython/graph.py @@ -3,7 +3,7 @@ # -class Graph(): +class Graph(object): """ Simple oriented graph structure diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py index cd09caee5..1cc7ce56a 100644 --- a/ipapython/sysrestore.py +++ b/ipapython/sysrestore.py @@ -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 |