[elbe-devel] [PATCH 08/40] pylint: fix Old-style class defined issues

Torben Hohn torben.hohn at linutronix.de
Thu Sep 20 11:17:21 CEST 2018


On Fri, Sep 14, 2018 at 01:56:20PM +0200, Manuel Traut wrote:
> fix pylint complains about Category C1001
> 
> Signed-off-by: Manuel Traut <manut at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn 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 2a495a63..f1d3729e 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 b941f172..f0254d75 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 19204e3a..3aac138c 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.19.0.rc2
> 

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180920/acb1bfb4/attachment.sig>


More information about the elbe-devel mailing list