From 068e47e22c21aaff92c26bde3cf5afe1414bc103 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Fri, 12 May 2017 16:56:07 -0700 Subject: [PATCH] Fix a few style issues --- qutebrowser/browser/commands.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 2f7e6b6ab..6e103d51f 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -888,11 +888,11 @@ class CommandDispatcher: cur_idx = self._tabbed_browser.currentIndex() assert cur_idx != -1 - def _to_close(index): + def _to_close(i): """Helper method to check if a tab should be closed or not.""" - return not (i == cur_idx - or (prev and i < cur_idx) - or (next_ and i > cur_idx)) + return not (i == cur_idx or + (prev and i < cur_idx) or + (next_ and i > cur_idx)) # Check to see if we are closing any pinned tabs if not force: @@ -900,7 +900,8 @@ class CommandDispatcher: if _to_close(i) and tab.data.pinned: self._tab_close_prompt_if_pinned( tab, force, - lambda: self.tab_only(prev=prev, next_=next_, force=True)) + lambda: self.tab_only( + prev=prev, next_=next_, force=True)) return for i, tab in enumerate(self._tabbed_browser.widgets()):