Python: remove redundant len() use

This commit is contained in:
Campbell Barton 2014-02-19 00:05:31 +11:00
parent d035e5ac9d
commit e965afcdcc
3 changed files with 3 additions and 3 deletions

@ -279,7 +279,7 @@ class _GenericBone:
child = children_basename[0]
chain.append(child)
else:
if len(children_basename):
if children_basename:
print("multiple basenames found, "
"this is probably not what you want!",
self.name, children_basename)

@ -99,7 +99,7 @@ def applyVertexDirt(me, blur_iterations, blur_strength, clamp_dirt, clamp_clean,
active_col_layer = None
if len(me.vertex_colors):
if me.vertex_colors:
for lay in me.vertex_colors:
if lay.active:
active_col_layer = lay.data

@ -955,7 +955,7 @@ class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel):
if mod.input_mask_type == 'STRIP':
sequences_object = sequencer
if len(sequencer.meta_stack):
if sequencer.meta_stack:
sequences_object = sequencer.meta_stack[-1]
box.prop_search(mod, "input_mask_strip", sequences_object, "sequences", text="Mask")
else: