[elbe-devel] [PATCH 73/75] elbe: Fix Pylint
Torben Hohn
torben.hohn at linutronix.de
Fri May 29 17:04:54 CEST 2020
On Mon, May 25, 2020 at 11:43:06AM -0400, Olivier Dion wrote:
> 35:0: C0325: (superfluous-parens)
> 13:0: W0611: (unused-import)
> 16:0: W0611: (unused-import)
>
> Signed-off-by: Olivier Dion <dion at linutronix.de>
> ---
> elbe | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/elbe b/elbe
> index 8ba6ef1d..30059872 100755
> --- a/elbe
> +++ b/elbe
> @@ -10,9 +10,11 @@
>
> from __future__ import print_function
>
> +# pylint: disable=unused-import
why do we need os ?
> import os
> import sys
>
> +# pylint: disable=unused-import
> import elbepack.commands
add a comment, why we do this.
> from elbepack.version import elbe_version
> from elbepack.directories import init_directories, get_cmdlist
> @@ -32,7 +34,7 @@ def usage():
>
> init_directories(__file__)
>
> -if (len(sys.argv) < 2):
> +if len(sys.argv) < 2:
> usage()
> sys.exit(20)
>
> --
> 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