From ebd442ea956cb968087b4adf59903aea54bd67c8 Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 18 Jun 2017 23:07:38 +0200 Subject: [PATCH] add needed parens and remove trailing whitespace --- qutebrowser/mainwindow/tabwidget.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 14e1fd9f7..9a34fc0fc 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -522,12 +522,12 @@ class TabBar(QTabBar): width = tab_width_pinned_conf else: - # If we *do* have enough space, tabs should occupy the whole - # window # width. If there are pinned tabs their size will be + # If we *do* have enough space, tabs should occupy the whole + # window # width. If there are pinned tabs their size will be # subtracted from the total window width. # During shutdown the self.count goes down, - # but the self.pinned_count not - this generates some odd - # behavior. To avoid this we compare self.count against + # but the self.pinned_count not - this generates some odd + # behavior. To avoid this we compare self.count against # self.pinned_count. if self.pinned_count > 0 and no_pinned_count > 0: width = no_pinned_width / no_pinned_count @@ -536,8 +536,8 @@ class TabBar(QTabBar): # If no_pinned_width is not divisible by no_pinned_count, add a # pixel to some tabs so # that there is no ugly leftover space. - if no_pinned_count > 0 and - index < no_pinned_width % no_pinned_count: + if (no_pinned_count > 0 and + index < no_pinned_width % no_pinned_count): width += 1 size = QSize(width, height)