From 33aa8bfa521b2ae015adb0d0cf570af4a4451c66 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 10 Apr 2014 12:22:22 +0200 Subject: [PATCH] Fix checking of boolean states --- qutebrowser/config/conftypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index 8ba9937b9..27f60952c 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -181,10 +181,10 @@ class Bool(BaseType): '0': False, 'no': False, 'false': False, 'off': False} def transform(self, value): - return self._BOOLEAN_STATES[value.lower()] + return Bool._BOOLEAN_STATES[value.lower()] def validate(self, value): - if value.lower() not in self._BOOLEAN_STATES: + if value.lower() not in Bool._BOOLEAN_STATES: raise ValidationError(value, "must be a boolean!")