def get_errant_logs_for_tree(root_node):
 return (log for node in root_node.node_and_primary_descendants() for log in get_errant_logs(node))

def get_errant_logs_for_tree ( root_node ) : return ( log for node in root_node . node_and_primary_descendants ( ) for log in get_errant_logs ( node ) )
get logs that should be hidden for a node and its primary descendants .