+ if not self.config.has_section(section):
+ self.config.add_section(section)
+ self.config.set(section, key, str(value))
+ if self.writeout: self.write()
+
+ def delete(self, section, key):
+ if self.config.has_section(section):
+ self.config.remove_option(section, key)