[elbe-devel] [PATCH 5/5] pylint: fix Old-style class defined issues
Manuel Traut
manut at linutronix.de
Fri Aug 24 16:00:37 CEST 2018
fix pylint complains about Category C1001
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/elbexml.py | 2 +-
elbepack/gpg.py | 2 +-
elbepack/rfs.py | 2 +-
elbepack/updated.py | 6 +++---
elbepack/virtapt.py | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
index 154736f1..9840b628 100644
--- a/elbepack/elbexml.py
+++ b/elbepack/elbexml.py
@@ -44,7 +44,7 @@ class NoInitvmNode(Exception):
pass
-class ValidationMode():
+class ValidationMode(object):
NO_CHECK = True
CHECK_BINARIES = 2
CHECK_ALL = False
diff --git a/elbepack/gpg.py b/elbepack/gpg.py
index 3dacb03c..c56f22e5 100644
--- a/elbepack/gpg.py
+++ b/elbepack/gpg.py
@@ -26,7 +26,7 @@ elbe_internal_key_param = """
"""
-class OverallStatus:
+class OverallStatus(object):
def __init__(self):
self.invalid = False
diff --git a/elbepack/rfs.py b/elbepack/rfs.py
index 2d565fa3..ed6d3d57 100644
--- a/elbepack/rfs.py
+++ b/elbepack/rfs.py
@@ -22,7 +22,7 @@ class DebootstrapException (Exception):
Exception.__init__(self, "Debootstrap Failed")
-class BuildEnv ():
+class BuildEnv (object):
def __init__(self, xml, log, path, build_sources=False, clean=False):
# pylint: disable=too-many-arguments
diff --git a/elbepack/updated.py b/elbepack/updated.py
index 7e2418f5..2c7ea748 100644
--- a/elbepack/updated.py
+++ b/elbepack/updated.py
@@ -43,7 +43,7 @@ except ImportError:
downgrade_prevention_feature_available = False
-class UpdateStatus:
+class UpdateStatus(object):
# pylint: disable=too-many-instance-attributes
@@ -152,7 +152,7 @@ class UpdateService (ServiceBase):
self.app.status.log("connection established")
-class rw_access_file:
+class rw_access_file(object):
def __init__(self, filename, status):
self.filename = filename
self.rw = rw_access(filename, status)
@@ -168,7 +168,7 @@ class rw_access_file:
self.rw.__exit__(typ, value, traceback)
-class rw_access:
+class rw_access(object):
def __init__(self, directory, status):
self.status = status
self.directory = directory
diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index bffbc659..9a0e6b1d 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -73,7 +73,7 @@ def lookup_uri(v, d, target_pkg):
-class VirtApt:
+class VirtApt(object):
def __init__(self, arch, suite, sources, prefs, keylist=[], noauth=False):
# pylint: disable=too-many-arguments
--
2.18.0
More information about the elbe-devel
mailing list