eric6/WebBrowser/CookieJar/CookieExceptionsModel.py

changeset 7268
a28338eaf694
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r aedc309827c7 -r a28338eaf694 eric6/WebBrowser/CookieJar/CookieExceptionsModel.py
--- a/eric6/WebBrowser/CookieJar/CookieExceptionsModel.py	Wed Sep 25 18:37:35 2019 +0200
+++ b/eric6/WebBrowser/CookieJar/CookieExceptionsModel.py	Wed Sep 25 18:48:22 2019 +0200
@@ -47,8 +47,8 @@
         if role == Qt.SizeHintRole:
             fm = QFontMetrics(QFont())
             height = fm.height() + fm.height() // 3
-            width = \
-                fm.width(self.headerData(section, orientation, Qt.DisplayRole))
+            width = fm.width(
+                self.headerData(section, orientation, Qt.DisplayRole))
             return QSize(width, height)
         
         if orientation == Qt.Horizontal and role == Qt.DisplayRole:
@@ -130,9 +130,11 @@
         if parent.isValid() or self.__cookieJar is None:
             return 0
         else:
-            return len(self.__allowedCookies) + \
-                len(self.__blockedCookies) + \
+            return (
+                len(self.__allowedCookies) +
+                len(self.__blockedCookies) +
                 len(self.__sessionCookies)
+            )
     
     def removeRows(self, row, count, parent=None):
         """

eric ide

mercurial