From a090b235d70c826ad823898800917c04e84a5535 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 29 Oct 2011 07:04:32 +0200 Subject: Make the PluginConfig class heritate the poezio Config We can use the nice and safe get() method --- src/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3