def _filter_disabled_blocks(all_blocks):
 disabled_block_names = [block.name for block in disabled_xblocks()]
 return [block_name for block_name in all_blocks if (block_name not in disabled_block_names)]

def _filter_disabled_blocks ( all_blocks ) : disabled_block_names = [ block . name for block in disabled_xblocks ( ) ] return [ block_name for block_name in all_blocks if ( block_name not in disabled_block_names ) ]
filter out disabled xblocks from the provided list of xblock names .