Commit a370a19d authored by Matthieu Muffato's avatar Matthieu Muffato Committed by ens-bwalts
Browse files

[pylint] "len" is superfluous

parent 2407febc
......@@ -67,7 +67,7 @@ if mode not in available_modes:
if len(sys.argv)-2 < len(available_modes[mode][1]):
usage('Not enough arguments for mode "' + mode + '". Expecting: ' + ' '.join(available_modes[mode][1]))
if len(sys.argv)-2 > len(available_modes[mode][1]):
usage('Too many arguments for mode "' + mode + '". Expecting: ' + (' '.join(available_modes[mode][1]) if len(available_modes[mode][1]) else '(none)'))
usage('Too many arguments for mode "' + mode + '". Expecting: ' + (' '.join(available_modes[mode][1]) if available_modes[mode][1] else '(none)'))
available_modes[mode][0]()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment