#NEWLINE# def write( self , location , text , encoding ) : #NEWLINE# #INDENT# '\n        Write file to disk.\n        ' #NEWLINE# location = os . path . expanduser ( location ) #NEWLINE# with codecs . open ( location , 'w' , encoding ) as f : #NEWLINE# #INDENT# f . write ( text )