(self, fp, section_name, section_items, delimiter)
Write a single section to the specified `fp'.
Write a single section to the specified `fp'.
Write a single section to the specified fp .
def _write_section(self, fp, section_name, section_items, delimiter):
        """Write a single section to the specified `fp'."""
        fp.write("[{}]\n".format(section_name))
        for key, value in section_items:
            value = self._interpolation.before_write(self, section_name, key,
                                                     value)
            if value is not None or not self._allow_no_value:
                value = delimiter + str(value).replace('\n', '\n\t')
            else:
                value = ""
            fp.write("{}{}\n".format(key, value))
        fp.write("\n")
def _write_section ( self , fp , section_name , section_items , delimiter ) : fp . write ( "[{}]\n" . format ( section_name ) ) for key , value in section_items : value = self . _interpolation . before_write ( self , section_name , key , value ) if value is not None or not self . _allow_no_value : value = delimiter + str ( value ) . replace ( '\n' , '\n\t' ) else : value = "" fp . write ( "{}{}\n" . format ( key , value ) ) fp . write ( "\n" )