--- 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()