#NEWLINE# def _group_item_bodies( self , item_bodies ) : #NEWLINE# #INDENT# item_bodies_by_path = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for entry in item_bodies : #NEWLINE# #INDENT# item_id_file_path = base . paths . item_id_to_file_path ( self . _items_directory , entry . item_id ) #NEWLINE# item_bodies_by_path . setdefault ( item_id_file_path , [ ] ) . append ( entry ) #NEWLINE# #UNINDENT# return item_bodies_by_path