[elbe-devel] [PATCH 06/16] commands: pbuilder: fix pylint

Torben Hohn torben.hohn at linutronix.de
Wed Jul 28 17:40:42 CEST 2021


elbepack/commands/pbuilder.py:67: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/pbuilder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/pbuilder.py b/elbepack/commands/pbuilder.py
index d1d8b3bd9..88a89dfa8 100644
--- a/elbepack/commands/pbuilder.py
+++ b/elbepack/commands/pbuilder.py
@@ -64,7 +64,7 @@ def run_command(argv):
 
     (opt, args) = oparser.parse_args(argv)
 
-    if len(args) < 1:
+    if not args:
         print("elbe pbuilder - no subcommand given", file=sys.stderr)
         PBuilderAction.print_actions()
         return
-- 
2.20.1



More information about the elbe-devel mailing list