[elbe-devel] [PATCH v2 64/66] elbe: Fix Pylint
Torben Hohn
torben.hohn at linutronix.de
Wed Jun 10 13:54:11 CEST 2020
On Fri, Jun 05, 2020 at 01:07:28PM -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>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
> ---
> elbe | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/elbe b/elbe
> index 8ba6ef1d..76ab43a4 100755
> --- a/elbe
> +++ b/elbe
> @@ -10,10 +10,17 @@
>
> from __future__ import print_function
>
> -import os
> import sys
>
> +# We need to import elbepack.commands so that
> +# elbepack/commands/__init__.py is run and the commands package is
> +# register into the elbepack namespace. This is later use by
> +# get_cmd_list() and the magic stuff with __import__() at the end of
> +# this file
> +#
> +# pylint: disable=unused-import
> import elbepack.commands
> +
> from elbepack.version import elbe_version
> from elbepack.directories import init_directories, get_cmdlist
>
> @@ -32,7 +39,7 @@ def usage():
>
> init_directories(__file__)
>
> -if (len(sys.argv) < 2):
> +if len(sys.argv) < 2:
> usage()
> sys.exit(20)
>
> --
> 2.27.0
>
>
> _______________________________________________
> 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