summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@gmail.com>2020-03-20 22:44:58 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-20 15:53:50 -0600
commit7b2525ab235a38cfce57c44f54730086b66e7765 (patch)
treea75f306a6e0b0478702906acae962b9ecd9cc811
parent9bf5f88c1179c84c8072ecffc7026e77acb3641b (diff)
downloadblktrace-7b2525ab235a38cfce57c44f54730086b66e7765.tar.gz
blktrace-7b2525ab235a38cfce57c44f54730086b66e7765.tar.bz2
bno_plot.py: Fix pylint: singleton-comparison
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>
-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 be64da0..3aa4e19 100644
--- 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: