From c67f0c648296cf664bf813a89444eeb11c04f859 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 27 Feb 2014 22:52:52 +0100 Subject: [PATCH] Don't inherit AutoSearch from bool --- qutebrowser/config/conftypes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index befd2cd5f..09dcd2553 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -239,11 +239,10 @@ class KeyBindingName(BaseType): -class AutoSearch(Bool): +class AutoSearch(BaseType): """Whether to start a search when something else than an URL is entered.""" - typestr = None valid_values = [("naive", "Use simple/naive check."), ("dns", "Use DNS requests (might be slow!)."), ("false", "Never search automatically.")] @@ -252,7 +251,7 @@ class AutoSearch(Bool): if self.value.lower() in ["naive", "dns"]: return True else: - return super().validate(self.value) + return Bool.validate(self, self.value) def transform(self, value): if value.lower() in ["naive", "dns"]: