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