From c3f53312afb5f75e17ef6d20bd6b289f62d79187 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 23 Jul 2016 19:51:13 +0200 Subject: [PATCH] Fix 'is not' string comparison --- qutebrowser/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 364484b70..863ecd5c5 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -494,7 +494,7 @@ class ConfigManager(QObject): for sectname in cp: if sectname in self.RENAMED_SECTIONS: sectname = self.RENAMED_SECTIONS[sectname] - if sectname is not 'DEFAULT' and sectname not in self.sections: + if sectname != 'DEFAULT' and sectname not in self.sections: if not relaxed: raise configexc.NoSectionError(sectname) for sectname in self.sections: