(self, fp, space_around_delimiters=True)
Write an .ini-format representation of the configuration state.

        If `space_around_delimiters' is True (the default), delimiters
        between keys and values are surrounded by spaces.

        Please note that comments in the original configuration file are not
        preserved when writing the configuration back.
Write an .ini-format representation of the configuration state.
Write an . ini - format representation of the configuration state .
def write(self, fp, space_around_delimiters=True):
        """Write an .ini-format representation of the configuration state.

        If `space_around_delimiters' is True (the default), delimiters
        between keys and values are surrounded by spaces.

        Please note that comments in the original configuration file are not
        preserved when writing the configuration back.
        """
        if space_around_delimiters:
            d = " {} ".format(self._delimiters[0])
        else:
            d = self._delimiters[0]
        if self._defaults:
            self._write_section(fp, self.default_section,
                                    self._defaults.items(), d)
        for section in self._sections:
            self._write_section(fp, section,
                                self._sections[section].items(), d)
def write ( self , fp , space_around_delimiters = True ) : if space_around_delimiters : d = " {} " . format ( self . _delimiters [ 0 ] ) else : d = self . _delimiters [ 0 ] if self . _defaults : self . _write_section ( fp , self . default_section , self . _defaults . items ( ) , d ) for section in self . _sections : self . _write_section ( fp , section , self . _sections [ section ] . items ( ) , d )