From 5414744439281f7d50bdd023da6bb41b3b30068f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 15 Jun 2017 19:00:43 +0200 Subject: [PATCH] Clean up NewConfigManager --- qutebrowser/config/newconfig.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/qutebrowser/config/newconfig.py b/qutebrowser/config/newconfig.py index 29adc98e9..880746d43 100644 --- a/qutebrowser/config/newconfig.py +++ b/qutebrowser/config/newconfig.py @@ -112,21 +112,19 @@ class change_filter: # pylint: disable=invalid-name class NewConfigManager(QObject): - # FIXME:conf QObject? - - changed = pyqtSignal(str, str) # FIXME:conf stub... where is this used? + changed = pyqtSignal(str, str) # FIXME:conf stub... def __init__(self, parent=None): super().__init__(parent) - self._values = {} + self.options = {} def read_defaults(self): for name, option in configdata.DATA.items(): - self._values[name] = option + self.options[name] = option def get(self, option): try: - value = self._values[option] + value = self.options[option] except KeyError: raise configexc.NoOptionError(option) return value.typ.to_py(value.default)