#NEWLINE# def serialize_to_lines( theme ) : #NEWLINE# #INDENT# for ( element , params ) in theme : #NEWLINE# #INDENT# if isinstance ( params , tuple ) : #NEWLINE# #INDENT# ( yield ( '%s=(%s)' % ( element , ',' . join ( [ to_str ( s ) for s in params ] ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ( '%s=%s' % ( element , params ) ) )