#NEWLINE# def process_param( key , value , terse = False ) : #NEWLINE# #INDENT# if terse : #NEWLINE# #INDENT# if ( ( key == key ) or ( value is True ) ) : #NEWLINE# #INDENT# return key #NEWLINE# #UNINDENT# #UNINDENT# if isinstance ( value , basestring ) : #NEWLINE# #INDENT# value = value . decode ( 'utf8' ) #NEWLINE# #UNINDENT# return ( '%s="%s"' % ( key , value ) )