#NEWLINE# def generate_file_tree( nodes ) : #NEWLINE# #INDENT# file_trees = { n . _id : file_tree_factory ( 3 , 3 , 3 ) for n in nodes } #NEWLINE# selected_files = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# selected_file_node_index = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for n in nodes : #NEWLINE# #INDENT# file_tree = file_trees [ n . _id ] #NEWLINE# selected = select_files_from_tree ( file_tree ) #NEWLINE# selected_file_node_index . update ( { sha256 : n . _id for sha256 in selected . keys ( ) } ) #NEWLINE# selected_files . update ( selected ) #NEWLINE# #UNINDENT# return ( sha256 , selected_files , selected_file_node_index )