Skip to contentSkip to conversation

bno_plot.py: Fix pylint: len-as-condition

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

lore
Share & tools
lore
#0 lore raw

PATCH 8/10 bno_plot.py: Fix pylint: len-as-condition

Do not use len(SEQUENCE) to determine if a sequence is empty

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