Map Config.remove_and_save to PluginConfig.remove
This commit is contained in:
parent
b01d94294a
commit
e6ce1ce7b6
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ class PluginConfig(config.Config):
|
||||||
section = self.module_name
|
section = self.module_name
|
||||||
return config.Config.set_and_save(self, option, default, section)
|
return config.Config.set_and_save(self, option, default, section)
|
||||||
|
|
||||||
|
def remove(self, option, section=None):
|
||||||
|
if not section:
|
||||||
|
section = self.module_name
|
||||||
|
return config.Config.remove_and_save(self, option, section)
|
||||||
|
|
||||||
def read(self):
|
def read(self):
|
||||||
"""Read the config file"""
|
"""Read the config file"""
|
||||||
RawConfigParser.read(self, self.file_name)
|
RawConfigParser.read(self, self.file_name)
|
||||||
|
|
Loading…
Reference in a new issue