#NEWLINE# def _reflow_and_split_labels( labels ) : #NEWLINE# #INDENT# rv = [ ] #NEWLINE# for ( lang , string ) in labels . iteritems ( ) : #NEWLINE# #INDENT# for ( idx , item ) in enumerate ( string . split ( ',' ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# d = rv [ idx ] #NEWLINE# #UNINDENT# except LookupError : #NEWLINE# #INDENT# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# rv . append ( d ) #NEWLINE# #UNINDENT# d [ lang ] = item . strip ( ) #NEWLINE# #UNINDENT# #UNINDENT# return rv