From 025c5d3dd1334143461481aa2d861665a5e2e024 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 20 Nov 2009 16:46:50 -0600 Subject: [PATCH] Fix up config.py slightly to make pylint happier --- terminatorlib/config.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index a3395743..6b918439 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -148,13 +148,20 @@ DEFAULTS = { class Config(Borg, dict): """Class to provide access to our user configuration""" + defaults = None + def __init__(self): """Class initialiser""" Borg.__init__(self) dict.__init__(self) + def prepare_attributes(self): + """Set up our borg environment""" + if self.defaults is None: + self.defaults = DEFAULTS + def __getitem__(self, key): """Look up a configuration item""" - return(DEFAULTS[key]) + return(self.defaults[key])