eric6/WebBrowser/AdBlock/AdBlockTreeWidget.py

changeset 7268
a28338eaf694
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r aedc309827c7 -r a28338eaf694 eric6/WebBrowser/AdBlock/AdBlockTreeWidget.py
--- a/eric6/WebBrowser/AdBlock/AdBlockTreeWidget.py	Wed Sep 25 18:37:35 2019 +0200
+++ b/eric6/WebBrowser/AdBlock/AdBlockTreeWidget.py	Wed Sep 25 18:48:22 2019 +0200
@@ -10,8 +10,10 @@
 
 from PyQt5.QtCore import Qt
 from PyQt5.QtGui import QFont, QColor
-from PyQt5.QtWidgets import QAbstractItemView, QTreeWidgetItem, QInputDialog, \
-    QLineEdit, QMenu, QApplication
+from PyQt5.QtWidgets import (
+    QAbstractItemView, QTreeWidgetItem, QInputDialog, QLineEdit, QMenu,
+    QApplication
+)
 
 from E5Gui.E5TreeWidget import E5TreeWidget
 
@@ -135,9 +137,11 @@
         Public slot to remove the current rule.
         """
         item = self.currentItem()
-        if item is None or \
-           not self.__subscription.canEditRules() or \
-           item == self.__topItem:
+        if (
+            item is None or
+            not self.__subscription.canEditRules() or
+            item == self.__topItem
+        ):
             return
         
         offset = item.data(0, Qt.UserRole)
@@ -260,8 +264,10 @@
         @param evt key press event
         @type QKeyEvent
         """
-        if evt.key() == Qt.Key_C and \
-           evt.modifiers() & Qt.ControlModifier:
+        if (
+            evt.key() == Qt.Key_C and
+            evt.modifiers() & Qt.ControlModifier
+        ):
             self.__copyFilter()
         elif evt.key() == Qt.Key_Delete:
             self.removeRule()

eric ide

mercurial