Initialize PluginConfig properly

This commit is contained in:
mathieui 2014-10-20 22:52:41 +02:00
parent b803db7ff6
commit 7bc5d0de66
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -20,9 +20,8 @@ class PluginConfig(config.Config):
and behave like the core Config object. and behave like the core Config object.
""" """
def __init__(self, filename, module_name): def __init__(self, filename, module_name):
self.file_name = filename config.Config.__init__(self, filename)
self.module_name = module_name self.module_name = module_name
RawConfigParser.__init__(self, None)
self.read() self.read()
def get(self, option, default, section=None): def get(self, option, default, section=None):