[elbe-devel] [PATCH 04/16] commands: control: fix pylint
Torben Hohn
torben.hohn at linutronix.de
Wed Jul 28 17:40:40 CEST 2021
elbepack/commands/control.py:118:7: C1801: Do not use `len(SEQUENCE)` to determine if a sequence is empty (len-as-condition)
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/commands/control.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/commands/control.py b/elbepack/commands/control.py
index ebffad6d8..e8b8b86ab 100644
--- a/elbepack/commands/control.py
+++ b/elbepack/commands/control.py
@@ -115,7 +115,7 @@ def run_command(argv):
(opt, args) = oparser.parse_args(argv)
- if len(args) < 1:
+ if not args:
print("elbe control - no subcommand given", file=sys.stderr)
ClientAction.print_actions()
return
--
2.20.1
More information about the elbe-devel
mailing list