#NEWLINE# def save( self ) : #NEWLINE# #INDENT# assert ( not self . parent ) , 'save() should only be called on root objects' #NEWLINE# if fp . inifilename : #NEWLINE# #INDENT# with open ( self . inifilename , 'w' ) as fp : #NEWLINE# #INDENT# self . source . write ( fp )