projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af756d5
)
bno_plot.py: Fix pylint: len-as-condition
author
Vincent Legoll
<vincent.legoll@gmail.com>
Fri, 20 Mar 2020 21:44:57 +0000
(22:44 +0100)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/btt/bno_plot.py
b/btt/bno_plot.py
index 1a1937c78839449caa956dd885b337e59b91a54e..be64da08ff70004791e0797ce204ea1529578946 100644
(file)
--- 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)