summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-22 20:17:19 +0200
committermathieui <mathieui@mathieui.net>2014-04-22 20:17:19 +0200
commite6ce1ce7b6f45f119015f03185212317a7c20fc6 (patch)
tree445b2cf58bcad0b254b0cd6144622ca386200288 /src
parentb01d94294ae7018582030cda62bf5a76acb00551 (diff)
downloadpoezio-e6ce1ce7b6f45f119015f03185212317a7c20fc6.tar.gz
poezio-e6ce1ce7b6f45f119015f03185212317a7c20fc6.tar.bz2
poezio-e6ce1ce7b6f45f119015f03185212317a7c20fc6.tar.xz
poezio-e6ce1ce7b6f45f119015f03185212317a7c20fc6.zip
Map Config.remove_and_save to PluginConfig.remove
Diffstat (limited to 'src')
-rw-r--r--src/plugin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py
index 49f79ad5..a2412e10 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -35,6 +35,11 @@ class PluginConfig(config.Config):
section = self.module_name
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):
"""Read the config file"""
RawConfigParser.read(self, self.file_name)