[elbe-devel] [PATCH 28/75] daemons soap faults: Fix Pylint

Torben Hohn torben.hohn at linutronix.de
Fri May 29 11:53:36 CEST 2020


On Mon, May 25, 2020 at 11:42:21AM -0400, Olivier Dion wrote:
> 75:4: R1705: (no-else-return)
> 71:0: R0911: (too-many-return-statements)
> 71:0: R0915: (too-many-statements)
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>
> ---
>  elbepack/daemons/soap/faults.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/elbepack/daemons/soap/faults.py b/elbepack/daemons/soap/faults.py
> index 288d1c8f..c0d05fb5 100644
> --- a/elbepack/daemons/soap/faults.py
> +++ b/elbepack/daemons/soap/faults.py
> @@ -72,6 +72,9 @@ def soap_faults(func):
>      """ decorator, which wraps Exceptions to the proper
>          Soap Faults, and raises these.
>      """
> +    # pylint: disable=no-else-return

why ignore no else return ?
just remove  the else.


> +    # pylint: disable=too-many-return-statements
> +    # pylint: disable=too-many-statements

ok ^^

>      if func.__code__.co_argcount == 1:
>          @wraps(func)
>          def wrapped(self):
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
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



More information about the elbe-devel mailing list