[elbe-devel] [PATCH 03/16] commands: chroot: fix pylint
Torben Hohn
torben.hohn at linutronix.de
Wed Jul 28 17:40:39 CEST 2021
elbepack/commands/chroot.py:34: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/chroot.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/commands/chroot.py b/elbepack/commands/chroot.py
index 3534c486a..671ae6bf4 100644
--- a/elbepack/commands/chroot.py
+++ b/elbepack/commands/chroot.py
@@ -31,7 +31,7 @@ def run_command(argv):
(opt, args) = oparser.parse_args(argv)
- if len(args) < 1:
+ if not args:
print("wrong number of arguments")
oparser.print_help()
sys.exit(20)
--
2.20.1
More information about the elbe-devel
mailing list