#NEWLINE# def _write( self , fp ) : #NEWLINE# #INDENT# 'Write an .ini-format representation of the configuration state in\n        git compatible format' #NEWLINE# def write_section( name , section_dict ) : #NEWLINE# #INDENT# fp . write ( ( '[%s]\n' % name ) . encode ( defenc ) ) #NEWLINE# for ( key , value ) in section_dict . items ( ) : #NEWLINE# #INDENT# if ( key != '__name__' ) : #NEWLINE# #INDENT# fp . write ( ( '\t%s = %s\n' % ( key , self . _value_to_string ( value ) . replace ( '\n' , '\n\t' ) ) ) . encode ( defenc ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if self . _defaults : #NEWLINE# #INDENT# write_section ( cp . DEFAULTSECT , self . _defaults ) #NEWLINE# #UNINDENT# for ( name , value ) in self . _sections . items ( ) : #NEWLINE# #INDENT# write_section ( name , fp )