bno_plot.py: Fix pylint: len-as-condition
authorVincent Legoll <vincent.legoll@gmail.com>
Fri, 20 Mar 2020 21:44:57 +0000 (22:44 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Mar 2020 21:53:50 +0000 (15:53 -0600)
Do not use `len(SEQUENCE)` to determine if a sequence is empty

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
btt/bno_plot.py

index 1a1937c78839449caa956dd885b337e59b91a54e..be64da08ff70004791e0797ce204ea1529578946 100644 (file)
@@ -76,7 +76,7 @@ def parse_args(in_args):
                elif o in ('-K', '--keys-below'):
                        keys_below = True
 
-       if len(args) > 0:       bnos = args
+       if args:        bnos = args
        else:                   bnos = glob.glob('blknos*[rw].dat')
 
        return (bnos, keys_below)