[elbe-devel] [PATCH 46/75] daemons soap authentication: Fix Pylint

Torben Hohn torben.hohn at linutronix.de
Fri May 29 13:08:07 CEST 2020


On Mon, May 25, 2020 at 11:42:39AM -0400, Olivier Dion wrote:
> 23:4:  R1705: (no-else-return)
> 106:4: R1705: (no-else-return)
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

dont ignore it, remove the else

> ---
>  elbepack/daemons/soap/authentication.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/elbepack/daemons/soap/authentication.py b/elbepack/daemons/soap/authentication.py
> index 6d2850ff..da738816 100644
> --- a/elbepack/daemons/soap/authentication.py
> +++ b/elbepack/daemons/soap/authentication.py
> @@ -20,6 +20,7 @@ def authenticated_uid(func):
>              @authenticated_uid
>              def get_files (self, uid, builddir):
>      """
> +    # pylint: disable=no-else-return
>      if func.__code__.co_argcount == 2:
>          @wraps(func)
>          def wrapped(self):
> @@ -103,6 +104,7 @@ def authenticated_admin(func):
>              @authenticated_uid
>              def get_files (self, uid, builddir):
>      """
> +    # pylint: disable=no-else-return
>      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