[elbe-devel] [PATCH 33/40] pylint: fix call constructor of base class

Torben Hohn torben.hohn at linutronix.de
Thu Sep 20 13:47:05 CEST 2018


On Fri, Sep 14, 2018 at 01:56:45PM +0200, Manuel Traut wrote:
> Signed-off-by: Manuel Traut <manut at linutronix.de>
> ---
>  elbepack/daemons/soap/datatypes.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/elbepack/daemons/soap/datatypes.py b/elbepack/daemons/soap/datatypes.py
> index 159bf8c9..0fa28069 100644
> --- a/elbepack/daemons/soap/datatypes.py
> +++ b/elbepack/daemons/soap/datatypes.py
> @@ -23,6 +23,7 @@ class SoapProject (ComplexModel):
>          self.version = prj.version
>          self.status = prj.status
>          self.edit = prj.edit
> +        ComplexModel.__init__(self)

please init baseclass before touching self.


>  
>  
>  class SoapFile (ComplexModel):
> @@ -34,3 +35,4 @@ class SoapFile (ComplexModel):
>      def __init__(self, fi):
>          self.name = fi.name
>          self.description = fi.description
> +        ComplexModel.__init__(self)
> -- 
> 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/77438e88/attachment.sig>


More information about the elbe-devel mailing list