X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/334a02a0dce1b9ac968598de84ba94bf58a460a9..d1ea05b06625b91b6d4fc9580fff461b47b3570c:/config.py diff --git a/config.py b/config.py index af470cb..d274509 100644 --- a/config.py +++ b/config.py @@ -1,7 +1,6 @@ import ConfigParser class Config(object): -# config = ConfigParser.SafeConfigParser() def __init__(self, filename, writeout=True): self.__dict__['config'] = ConfigParser.SafeConfigParser() self.__dict__['filename'] = filename @@ -14,8 +13,8 @@ class Config(object): def __setattr__(self, key, value): self.config.set('erebus', key, value) - def items(self): - return self.config.items('erebus') + def items(self, section='erebus'): + return self.config.items(section) def write(self): with open(self.filename, 'wb') as configfile: