projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf5f88
)
bno_plot.py: Fix pylint: singleton-comparison
author
Vincent Legoll
<vincent.legoll@gmail.com>
Fri, 20 Mar 2020 21:44:58 +0000
(22:44 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 20 Mar 2020 21:53:50 +0000
(15:53 -0600)
Comparison to None should be 'expr is None'
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 be64da08ff70004791e0797ce204ea1529578946..3aa4e1996b7759a149ecf8a37a6455e0c6f93457 100644
(file)
--- a/
btt/bno_plot.py
+++ b/
btt/bno_plot.py
@@
-105,7
+105,7
@@
if __name__ == '__main__':
print(fld[0], fld[1], int(fld[2])-int(fld[1]), file=fo)
t = t[t.rfind('/')+1:]
- if plot_cmd
==
None: plot_cmd = "splot '%s'" % t
+ if plot_cmd
is
None: plot_cmd = "splot '%s'" % t
else: plot_cmd = "%s,'%s'" % (plot_cmd, t)
with open('%s/plot.cmds' % tmpdir, 'w') as fo: