eric6/WebBrowser/QtHelp/QtHelpDocumentationDialog.py

changeset 7269
0c63ea7f94bd
parent 7235
4f23ea4af43c
child 7360
9190402e4505
--- a/eric6/WebBrowser/QtHelp/QtHelpDocumentationDialog.py	Wed Sep 25 18:48:22 2019 +0200
+++ b/eric6/WebBrowser/QtHelp/QtHelpDocumentationDialog.py	Wed Sep 25 18:52:40 2019 +0200
@@ -10,8 +10,9 @@
 import sqlite3
 
 from PyQt5.QtCore import pyqtSlot, Qt, QItemSelectionModel
-from PyQt5.QtWidgets import QDialog, QTreeWidgetItem, QListWidgetItem, \
-    QInputDialog, QLineEdit
+from PyQt5.QtWidgets import (
+    QDialog, QTreeWidgetItem, QListWidgetItem, QInputDialog, QLineEdit
+)
 from PyQt5.QtHelp import QHelpEngineCore
 
 from E5Gui import E5MessageBox, E5FileDialog
@@ -50,8 +51,10 @@
         @param index index of the current tab
         @type int
         """
-        if index != 1 and \
-           (self.__hasChangedFilters() or self.__removedAttributes):
+        if (
+            index != 1 and
+            (self.__hasChangedFilters() or self.__removedAttributes)
+        ):
             yes = E5MessageBox.yesNo(
                 self,
                 self.tr("Unsaved Filter Changes"),
@@ -80,8 +83,9 @@
         self.__tabsToClose = []
 
         try:
-            self.__pluginHelpDocuments = \
+            self.__pluginHelpDocuments = (
                 e5App().getObject("PluginManager").getPluginQtHelpFiles()
+            )
         except KeyError:
             from PluginManager.PluginManager import PluginManager
             pluginManager = PluginManager(self, doLoadPlugins=False)
@@ -119,8 +123,9 @@
         Private slot to add QtHelp documents provided by plug-ins to
         the help database.
         """
-        from .QtHelpDocumentationSelectionDialog import \
+        from .QtHelpDocumentationSelectionDialog import (
             QtHelpDocumentationSelectionDialog
+        )
         dlg = QtHelpDocumentationSelectionDialog(
             self.__pluginHelpDocuments,
             QtHelpDocumentationSelectionDialog.AddMode,
@@ -137,8 +142,9 @@
         """
         Private slot to manage the QtHelp documents provided by plug-ins.
         """
-        from .QtHelpDocumentationSelectionDialog import \
+        from .QtHelpDocumentationSelectionDialog import (
             QtHelpDocumentationSelectionDialog
+        )
         dlg = QtHelpDocumentationSelectionDialog(
             self.__pluginHelpDocuments,
             QtHelpDocumentationSelectionDialog.ManageMode,
@@ -234,8 +240,10 @@
         @return flag indicating presence of changes
         @rtype bool
         """
-        return len(self.__registeredDocs) > 0 or \
+        return (
+            len(self.__registeredDocs) > 0 or
             len(self.__unregisteredDocs) > 0
+        )
     
     def getTabsToClose(self):
         """

eric ide

mercurial