summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@gmail.com>2020-03-20 22:44:57 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-20 15:53:50 -0600
commit9bf5f88c1179c84c8072ecffc7026e77acb3641b (patch)
tree8650d7a352fd71fed754ebb0563afbfe1ee57d5f
parentaf756d5782a08cc746aa94a1237c2a596ac92af2 (diff)
downloadblktrace-9bf5f88c1179c84c8072ecffc7026e77acb3641b.tar.gz
blktrace-9bf5f88c1179c84c8072ecffc7026e77acb3641b.tar.bz2
bno_plot.py: Fix pylint: len-as-condition
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>
-rw-r--r--btt/bno_plot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/btt/bno_plot.py b/btt/bno_plot.py
index 1a1937c..be64da0 100644
--- a/btt/bno_plot.py
+++ b/btt/bno_plot.py
@@ -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)