Skip to contentSkip to conversation

bno_plot.py: Fix pylint: singleton-comparison

PATCH New Vincent Legoll 1 participant 1 message Mar 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 9/10 bno_plot.py: Fix pylint: singleton-comparison

Comparison to None should be 'expr is None'

---
 btt/bno_plot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
btt/bno_plot.py +1 -1
index be64da0..3aa4e19 100644
@@ -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:
Signature · 1 line
2.20.1