def parse_tmp_to_final_filepath_map_file(lines):
 infiles_lists = []
 out_filepaths = []
 for line in lines:
  fields = line.split()
  infiles_lists.append(fields[:(-1)])
  out_filepaths.append(fields[(-1)])
 return (infiles_lists, out_filepaths)

def parse_tmp_to_final_filepath_map_file ( lines ) : infiles_lists = [ ] out_filepaths = [ ] for line in lines : fields = line . split ( ) infiles_lists . append ( fields [ : ( - 1 ) ] ) out_filepaths . append ( fields [ ( - 1 ) ] ) return ( infiles_lists , out_filepaths )
parses poller maps of tmp -> final file names for example .