From 299fea830ed22b3623462e3cbaa5da56baecd781 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 7 Jun 2016 15:42:59 +0200 Subject: [PATCH] Simplify some bool conditions --- qutebrowser/keyinput/modeparsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/keyinput/modeparsers.py b/qutebrowser/keyinput/modeparsers.py index 8522c8e2d..4876bbce6 100644 --- a/qutebrowser/keyinput/modeparsers.py +++ b/qutebrowser/keyinput/modeparsers.py @@ -66,7 +66,7 @@ class NormalKeyParser(keyparser.CommandKeyParser): A self.Match member. """ txt = e.text().strip() - if self._inhibited is True: + if self._inhibited: self._debug_log("Ignoring key '{}', because the normal mode is " "currently inhibited.".format(txt)) return self.Match.none @@ -245,7 +245,7 @@ class HintKeyParser(keyparser.CommandKeyParser): `self._filtertext`. """ self.bindings = {s: s for s in strings} - if preserve_filter is False: + if not preserve_filter: self._filtertext = '' @pyqtSlot(str)