#NEWLINE# def writeString( self , encoding ) : #NEWLINE# #INDENT# '\n        Returns the feed in the given encoding as a string.\n        ' #NEWLINE# from StringIO import StringIO #NEWLINE# s = StringIO ( ) #NEWLINE# self . write ( s , encoding ) #NEWLINE# return s . getvalue ( )