From d1a4a028cd1d1b2ec8c6e87f4b80e31799170d8e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 22 Sep 2017 13:24:26 +0200 Subject: [PATCH] Use more idiomatic comparison --- qutebrowser/config/configtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py index 154925734..32b1fc872 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -258,7 +258,7 @@ class BaseType: """ utils.unused(indent) # only needed for Dict/List str_value = self.to_str(value) - if str_value == '': + if not str_value: return 'empty' return '+pass:[{}]+'.format(html.escape(str_value))