[elbe-devel] [PATCH v2 64/66] elbe: Fix Pylint
Olivier Dion
dion at linutronix.de
Fri Jun 5 19:07:28 CEST 2020
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 | 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
More information about the elbe-devel
mailing list