#NEWLINE# def _encode( self , v , indent = '' ) : #NEWLINE# #INDENT# ' Returns the given value as a string (empty string for None).\n        ' #NEWLINE# v = ( '%s' % ( v if ( v is not None ) else '' ) ) #NEWLINE# v = ( v . replace ( '\n' , ( '\n' + indent ) ) if indent else v ) #NEWLINE# return v