summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-10-29 07:04:32 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-10-29 07:04:32 +0200
commita090b235d70c826ad823898800917c04e84a5535 (patch)
tree202f95fb302dca6c27a76617749145afcf442c7f
parentcb2796abc5e3732dc199414bb1cbe166e0d57ae3 (diff)
downloadpoezio-a090b235d70c826ad823898800917c04e84a5535.tar.gz
poezio-a090b235d70c826ad823898800917c04e84a5535.tar.bz2
poezio-a090b235d70c826ad823898800917c04e84a5535.tar.xz
poezio-a090b235d70c826ad823898800917c04e84a5535.zip
Make the PluginConfig class heritate the poezio Config
We can use the nice and safe get() method
-rw-r--r--src/plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugin.py b/src/plugin.py
index 8d873419..a8eb5934 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -1,9 +1,10 @@
import os
from configparser import ConfigParser
+import config
import inspect
import traceback
-class PluginConfig(ConfigParser):
+class PluginConfig(config.Config):
def __init__(self, filename):
ConfigParser.__init__(self)
self.__config_file__ = filename
@@ -23,6 +24,7 @@ class PluginConfig(ConfigParser):
except IOError:
return False
+
class SafetyMetaclass(type):
# A hack
core = None