From 7d620a4bfc80c3120071d91cb3492111621ed3de Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Mon, 15 Jan 2018 13:39:42 -0500 Subject: [PATCH] fix pylint/flake8 errors --- qutebrowser/mainwindow/tabbedbrowser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 896e2f8ab..b325b5e1c 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -652,7 +652,8 @@ class TabbedBrowser(tabwidget.TabWidget): if self._now_focused and config.val.tabs.mode_on_change == 'restore': current_mode = modeman.instance(self._win_id).mode # only save insert & passthrough mode. otherwise default to normal - if not current_mode in (usertypes.KeyMode.insert,usertypes.KeyMode.passthrough): + input_modes = (usertypes.KeyMode.insert, usertypes.KeyMode.passthrough) + if current_mode not in input_modes: current_mode = usertypes.KeyMode.normal self._now_focused.data.input_mode = current_mode