#NEWLINE# def _partition_list( item ) : #NEWLINE# #INDENT# scalars = [ ] #NEWLINE# non_scalars = [ ] #NEWLINE# for element in item : #NEWLINE# #INDENT# if isinstance ( element , ( list , dict ) ) : #NEWLINE# #INDENT# non_scalars . append ( element ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# scalars . append ( element ) #NEWLINE# #UNINDENT# #UNINDENT# return ( scalars , non_scalars )