Corrected some code style issues. eric7

Sun, 23 May 2021 15:35:49 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 23 May 2021 15:35:49 +0200
branch
eric7
changeset 8366
2a9f5153c438
parent 8365
cde9bde830ea
child 8367
907860ca00d6

Corrected some code style issues.

eric7/Debugger/DebugUI.py file | annotate | diff | comparison | revisions
eric7/EricNetwork/EricSslCertificateSelectionDialog.py file | annotate | diff | comparison | revisions
eric7/EricNetwork/EricSslInfoWidget.py file | annotate | diff | comparison | revisions
eric7/EricWidgets/EricFileSaveConfirmDialog.py file | annotate | diff | comparison | revisions
eric7/EricWidgets/EricLineEdit.py file | annotate | diff | comparison | revisions
eric7/EricWidgets/EricModelToolBar.py file | annotate | diff | comparison | revisions
eric7/EricWidgets/EricPathPicker.py file | annotate | diff | comparison | revisions
eric7/EricWidgets/EricSideBar.py file | annotate | diff | comparison | revisions
eric7/EricWidgets/EricToolBarDialog.py file | annotate | diff | comparison | revisions
eric7/EricWidgets/EricTreeWidget.py file | annotate | diff | comparison | revisions
eric7/Graphics/AssociationItem.py file | annotate | diff | comparison | revisions
eric7/IconEditor/IconEditorGrid.py file | annotate | diff | comparison | revisions
eric7/MicroPython/EspDevices.py file | annotate | diff | comparison | revisions
eric7/MicroPython/MicroPythonWidget.py file | annotate | diff | comparison | revisions
eric7/MultiProject/MultiProjectBrowser.py file | annotate | diff | comparison | revisions
eric7/Network/IRC/IrcWidget.py file | annotate | diff | comparison | revisions
eric7/PluginManager/PluginManager.py file | annotate | diff | comparison | revisions
eric7/PluginManager/PluginRepositoryDialog.py file | annotate | diff | comparison | revisions
eric7/Plugins/PluginEricapi.py file | annotate | diff | comparison | revisions
eric7/Plugins/PluginEricdoc.py file | annotate | diff | comparison | revisions
eric7/Plugins/PluginTranslator.py file | annotate | diff | comparison | revisions
eric7/Plugins/PluginWizardEricMessageBox.py file | annotate | diff | comparison | revisions
eric7/Plugins/PluginWizardQFileDialog.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsGit/GitDiffDialog.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsGit/GitDiffHighlighter.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsMercurial/HgDiffHighlighter.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsPySvn/SvnDiffHighlighter.py file | annotate | diff | comparison | revisions
eric7/Plugins/VcsPlugins/vcsSubversion/SvnDiffHighlighter.py file | annotate | diff | comparison | revisions
eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
eric7/Plugins/WizardPlugins/SetupWizard/SetupWizardDialog.py file | annotate | diff | comparison | revisions
eric7/Preferences/ConfigurationDialog.py file | annotate | diff | comparison | revisions
eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py file | annotate | diff | comparison | revisions
eric7/Preferences/ConfigurationPages/EditorAPIsPage.py file | annotate | diff | comparison | revisions
eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py file | annotate | diff | comparison | revisions
eric7/Preferences/ConfigurationPages/EmailPage.py file | annotate | diff | comparison | revisions
eric7/Preferences/ConfigurationPages/NetworkPage.py file | annotate | diff | comparison | revisions
eric7/Preferences/ShortcutDialog.py file | annotate | diff | comparison | revisions
eric7/Preferences/ShortcutsDialog.py file | annotate | diff | comparison | revisions
eric7/Preferences/__init__.py file | annotate | diff | comparison | revisions
eric7/Project/Project.py file | annotate | diff | comparison | revisions
eric7/PyUnit/UnittestDialog.py file | annotate | diff | comparison | revisions
eric7/QScintilla/Exporters/ExporterHTML.py file | annotate | diff | comparison | revisions
eric7/QScintilla/Exporters/ExporterPDF.py file | annotate | diff | comparison | revisions
eric7/Snapshot/SnapWidget.py file | annotate | diff | comparison | revisions
eric7/Snapshot/SnapshotFreehandGrabber.py file | annotate | diff | comparison | revisions
eric7/Snapshot/SnapshotPreview.py file | annotate | diff | comparison | revisions
eric7/Snapshot/SnapshotRegionGrabber.py file | annotate | diff | comparison | revisions
eric7/UI/CodeDocumentationViewer.py file | annotate | diff | comparison | revisions
eric7/UI/DiffHighlighter.py file | annotate | diff | comparison | revisions
eric7/UI/UserInterface.py file | annotate | diff | comparison | revisions
eric7/Utilities/BackgroundService.py file | annotate | diff | comparison | revisions
eric7/WebBrowser/GreaseMonkey/GreaseMonkeyConfiguration/GreaseMonkeyConfigurationListWidget.py file | annotate | diff | comparison | revisions
eric7/WebBrowser/TabManager/TabManagerWidget.py file | annotate | diff | comparison | revisions
eric7/WebBrowser/Tools/PrintToPdfDialog.py file | annotate | diff | comparison | revisions
eric7/WebBrowser/UrlBar/FavIconLabel.py file | annotate | diff | comparison | revisions
eric7/WebBrowser/WebBrowserPage.py file | annotate | diff | comparison | revisions
eric7/WebBrowser/WebBrowserTabBar.py file | annotate | diff | comparison | revisions
scripts/install.py file | annotate | diff | comparison | revisions
--- a/eric7/Debugger/DebugUI.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Debugger/DebugUI.py	Sun May 23 15:35:49 2021 +0200
@@ -1405,21 +1405,20 @@
         @param debuggerId ID of the debugger backend
         @type str
         """
-        if debuggerId == self.getSelectedDebuggerId():
-            if scope > -2:
-                self.ui.activateDebugViewer()
-                if scope > 0:
-                    self.debugViewer.showVariables(variables, True)
-                    if scope == 1:
-                        # now get the local variables
-                        self.debugServer.remoteClientVariables(
-                            self.getSelectedDebuggerId(),
-                            0, self.__localsVarFilterList)
-                elif scope == 0:
-                    self.debugViewer.showVariables(variables, False)
-                elif scope == -1:
-                    vlist = [(self.tr('No locals available.'), '', '')]
-                    self.debugViewer.showVariables(vlist, False)
+        if debuggerId == self.getSelectedDebuggerId() and scope > -2:
+            self.ui.activateDebugViewer()
+            if scope > 0:
+                self.debugViewer.showVariables(variables, True)
+                if scope == 1:
+                    # now get the local variables
+                    self.debugServer.remoteClientVariables(
+                        self.getSelectedDebuggerId(),
+                        0, self.__localsVarFilterList)
+            elif scope == 0:
+                self.debugViewer.showVariables(variables, False)
+            elif scope == -1:
+                vlist = [(self.tr('No locals available.'), '', '')]
+                self.debugViewer.showVariables(vlist, False)
         
     def __clientVariable(self, scope, variables, debuggerId):
         """
--- a/eric7/EricNetwork/EricSslCertificateSelectionDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricNetwork/EricSslCertificateSelectionDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -23,7 +23,7 @@
 
 
 class EricSslCertificateSelectionDialog(QDialog,
-                                      Ui_EricSslCertificateSelectionDialog):
+                                        Ui_EricSslCertificateSelectionDialog):
     """
     Class implementing a dialog to select a SSL certificate.
     """
--- a/eric7/EricNetwork/EricSslInfoWidget.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricNetwork/EricSslInfoWidget.py	Sun May 23 15:35:49 2021 +0200
@@ -197,7 +197,9 @@
         """
         Private slot to show certificate information.
         """
-        from .EricSslCertificatesInfoDialog import EricSslCertificatesInfoDialog
+        from .EricSslCertificatesInfoDialog import (
+            EricSslCertificatesInfoDialog
+        )
         dlg = EricSslCertificatesInfoDialog(
             self.__configuration.peerCertificateChain())
         dlg.exec()
--- a/eric7/EricWidgets/EricFileSaveConfirmDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricFileSaveConfirmDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -143,6 +143,6 @@
     @rtype tuple of (str, str)
     """
     dlg = EricFileSaveConfirmDialog(filename, title, message=message,
-                                  picker=picker, parent=parent)
+                                    picker=picker, parent=parent)
     dlg.exec()
     return dlg.selectedAction()
--- a/eric7/EricWidgets/EricLineEdit.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricLineEdit.py	Sun May 23 15:35:49 2021 +0200
@@ -242,6 +242,7 @@
             return 0
         return w + spacing * 2
 
+
 class EricClearableLineEdit(EricLineEdit):
     """
     Class implementing a line edit widget showing some inactive text and a
--- a/eric7/EricWidgets/EricModelToolBar.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricModelToolBar.py	Sun May 23 15:35:49 2021 +0200
@@ -178,7 +178,8 @@
             evt.type() == QEvent.Type.MouseButtonPress and
             evt.buttons() & Qt.MouseButton.LeftButton
         ):
-            self.__dragStartPosition = self.mapFromGlobal(evt.globalPosition().toPoint())
+            self.__dragStartPosition = self.mapFromGlobal(
+                evt.globalPosition().toPoint())
         
         return False
     
--- a/eric7/EricWidgets/EricPathPicker.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricPathPicker.py	Sun May 23 15:35:49 2021 +0200
@@ -88,7 +88,7 @@
         if useLineEdit:
             self._editor = QLineEdit(self)
             self._editor.setPlaceholderText(QCoreApplication.translate(
-                    "EricPathPickerBase", "Enter Path Name"))
+                "EricPathPickerBase", "Enter Path Name"))
             self._editor.setClearButtonEnabled(True)
         else:
             self._editor = QComboBox(self)
@@ -546,7 +546,9 @@
                 self.__filters,
                 EricFileDialog.DontConfirmOverwrite)
             path = QDir.toNativeSeparators(path)
-        elif self.__mode == EricPathPickerModes.SAVE_FILE_ENSURE_EXTENSION_MODE:
+        elif (
+            self.__mode == EricPathPickerModes.SAVE_FILE_ENSURE_EXTENSION_MODE
+        ):
             path, selectedFilter = EricFileDialog.getSaveFileNameAndFilter(
                 self,
                 windowTitle,
--- a/eric7/EricWidgets/EricSideBar.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricSideBar.py	Sun May 23 15:35:49 2021 +0200
@@ -175,7 +175,9 @@
         """
         self.__minimized = True
         self.__bigSize = self.size()
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
             self.__maxSize = self.maximumHeight()
         else:
@@ -186,7 +188,9 @@
         
         self.__stackedWidget.hide()
         
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.setFixedHeight(self.__tabBar.minimumSizeHint().height())
         else:
             self.setFixedWidth(self.__tabBar.minimumSizeHint().width())
@@ -208,7 +212,9 @@
         self.__minimized = False
         self.__stackedWidget.show()
         self.resize(self.__bigSize)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             minSize = max(self.__minSize, self.minimumSizeHint().height())
             self.setMinimumHeight(minSize)
             self.setMaximumHeight(self.__maxSize)
@@ -287,7 +293,9 @@
             index = self.__tabBar.addTab(iconOrLabel)
             self.__tabBar.setTabToolTip(index, iconOrLabel)
         self.__stackedWidget.addWidget(widget)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
         else:
             self.__minSize = self.minimumSizeHint().width()
@@ -310,7 +318,9 @@
             index = self.__tabBar.insertTab(index, iconOrLabel)
             self.__tabBar.setTabToolTip(index, iconOrLabel)
         self.__stackedWidget.insertWidget(index, widget)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
         else:
             self.__minSize = self.minimumSizeHint().width()
@@ -323,7 +333,9 @@
         """
         self.__stackedWidget.removeWidget(self.__stackedWidget.widget(index))
         self.__tabBar.removeTab(index)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
         else:
             self.__minSize = self.minimumSizeHint().width()
@@ -610,7 +622,9 @@
         if not stateDict:
             return False
         
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             minSize = self.layout.minimumSize().height()
             maxSize = self.maximumHeight()
         else:
--- a/eric7/EricWidgets/EricToolBarDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricToolBarDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -96,7 +96,8 @@
                     0,
                     Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignVCenter
                 )
-                item.setData(0, EricToolBarDialog.ActionIdRole, int(id(action)))
+                item.setData(0, EricToolBarDialog.ActionIdRole,
+                             int(id(action)))
                 item.setData(0, EricToolBarDialog.WidgetActionRole, False)
                 if self.__manager.isWidgetAction(action):
                     item.setData(0, EricToolBarDialog.WidgetActionRole, True)
--- a/eric7/EricWidgets/EricTreeWidget.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricTreeWidget.py	Sun May 23 15:35:49 2021 +0200
@@ -261,7 +261,8 @@
             self.itemControlClicked.emit(self.itemAt(evt.position().toPoint()))
             return
         elif evt.buttons() == Qt.MouseButton.MiddleButton:
-            self.itemMiddleButtonClicked.emit(self.itemAt(evt.position().toPoint()))
+            self.itemMiddleButtonClicked.emit(
+                self.itemAt(evt.position().toPoint()))
             return
         else:
             super().mousePressEvent(evt)
--- a/eric7/Graphics/AssociationItem.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Graphics/AssociationItem.py	Sun May 23 15:35:49 2021 +0200
@@ -76,7 +76,7 @@
             arrowFilled = False
         
         EricArrowItem.__init__(self, QPointF(0, 0), QPointF(100, 100),
-                             arrowFilled, arrowType, colors, parent)
+                               arrowFilled, arrowType, colors, parent)
         
         self.setFlag(QGraphicsItem.GraphicsItemFlag.ItemIsMovable, False)
         self.setFlag(QGraphicsItem.GraphicsItemFlag.ItemIsSelectable, False)
--- a/eric7/IconEditor/IconEditorGrid.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/IconEditor/IconEditorGrid.py	Sun May 23 15:35:49 2021 +0200
@@ -80,7 +80,8 @@
     
     SELECT_RECTANGLE = 100
     SELECT_CIRCLE = 101
-    
+
+
 class IconEditorGrid(QWidget):
     """
     Class implementing the icon editor grid.
--- a/eric7/MicroPython/EspDevices.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/MicroPython/EspDevices.py	Sun May 23 15:35:49 2021 +0200
@@ -185,8 +185,8 @@
                 "erase_flash",
             ]
             dlg = EricProcessDialog(self.tr("'esptool erase_flash' Output"),
-                                  self.tr("Erase Flash"),
-                                  showProgress=True)
+                                    self.tr("Erase Flash"),
+                                    showProgress=True)
             res = dlg.startProcess(sys.executable, flashArgs)
             if res:
                 dlg.exec()
@@ -231,8 +231,8 @@
                 firmware,
             ]
             dlg = EricProcessDialog(self.tr("'esptool write_flash' Output"),
-                                  self.tr("Flash MicroPython Firmware"),
-                                  showProgress=True)
+                                    self.tr("Flash MicroPython Firmware"),
+                                    showProgress=True)
             res = dlg.startProcess(sys.executable, flashArgs)
             if res:
                 dlg.exec()
@@ -266,8 +266,8 @@
                 firmware,
             ]
             dlg = EricProcessDialog(self.tr("'esptool write_flash' Output"),
-                                  self.tr("Flash Additional Firmware"),
-                                  showProgress=True)
+                                    self.tr("Flash Additional Firmware"),
+                                    showProgress=True)
             res = dlg.startProcess(sys.executable, flashArgs)
             if res:
                 dlg.exec()
@@ -293,8 +293,8 @@
                 firmware,
             ]
             dlg = EricProcessDialog(self.tr("'esptool read_flash' Output"),
-                                  self.tr("Backup Firmware"),
-                                  showProgress=True)
+                                    self.tr("Backup Firmware"),
+                                    showProgress=True)
             res = dlg.startProcess(sys.executable, flashArgs)
             if res:
                 dlg.exec()
@@ -327,8 +327,8 @@
                 firmware,
             ])
             dlg = EricProcessDialog(self.tr("'esptool write_flash' Output"),
-                                  self.tr("Restore Firmware"),
-                                  showProgress=True)
+                                    self.tr("Restore Firmware"),
+                                    showProgress=True)
             res = dlg.startProcess(sys.executable, flashArgs)
             if res:
                 dlg.exec()
@@ -345,7 +345,7 @@
             "chip_id"
         ]
         dlg = EricProcessDialog(self.tr("'esptool chip_id' Output"),
-                              self.tr("Show Chip ID"))
+                                self.tr("Show Chip ID"))
         res = dlg.startProcess(sys.executable, args)
         if res:
             dlg.exec()
@@ -362,7 +362,7 @@
             "flash_id"
         ]
         dlg = EricProcessDialog(self.tr("'esptool flash_id' Output"),
-                              self.tr("Show Flash ID"))
+                                self.tr("Show Flash ID"))
         res = dlg.startProcess(sys.executable, args)
         if res:
             dlg.exec()
@@ -379,7 +379,7 @@
             "read_mac"
         ]
         dlg = EricProcessDialog(self.tr("'esptool read_mac' Output"),
-                              self.tr("Show MAC Address"))
+                                self.tr("Show MAC Address"))
         res = dlg.startProcess(sys.executable, args)
         if res:
             dlg.exec()
--- a/eric7/MicroPython/MicroPythonWidget.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/MicroPython/MicroPythonWidget.py	Sun May 23 15:35:49 2021 +0200
@@ -1783,7 +1783,9 @@
         from .AddEditDevicesDialog import AddEditDevicesDialog
         
         if len(devices) > 1:
-            from EricWidgets.EricListSelectionDialog import EricListSelectionDialog
+            from EricWidgets.EricListSelectionDialog import (
+                EricListSelectionDialog
+            )
             sdlg = EricListSelectionDialog(
                 [d[2] for d in devices],
                 title=self.tr("Add Unknown Devices"),
--- a/eric7/MultiProject/MultiProjectBrowser.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/MultiProject/MultiProjectBrowser.py	Sun May 23 15:35:49 2021 +0200
@@ -437,4 +437,5 @@
         """
         Private method to open the configuration dialog.
         """
-        ericApp().getObject("UserInterface").showPreferences("multiProjectPage")
+        ericApp().getObject("UserInterface").showPreferences(
+            "multiProjectPage")
--- a/eric7/Network/IRC/IrcWidget.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Network/IRC/IrcWidget.py	Sun May 23 15:35:49 2021 +0200
@@ -17,7 +17,9 @@
 from PyQt6.QtNetwork import QTcpSocket, QAbstractSocket
 try:
     from PyQt6.QtNetwork import QSslSocket, QSslConfiguration
-    from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState
+    from EricNetwork.EricSslErrorHandler import (
+        EricSslErrorHandler, EricSslErrorState
+    )
     SSL_AVAILABLE = True
 except ImportError:
     SSL_AVAILABLE = False
--- a/eric7/PluginManager/PluginManager.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/PluginManager/PluginManager.py	Sun May 23 15:35:49 2021 +0200
@@ -27,7 +27,9 @@
 
 from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired
 try:
-    from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState
+    from EricNetwork.EricSslErrorHandler import (
+        EricSslErrorHandler, EricSslErrorState
+    )
     SSL_AVAILABLE = True
 except ImportError:
     SSL_AVAILABLE = False
@@ -1305,7 +1307,9 @@
                 url = Preferences.getUI("PluginRepositoryUrl7")
                 
                 # read the repository file
-                from EricXML.PluginRepositoryReader import PluginRepositoryReader
+                from EricXML.PluginRepositoryReader import (
+                    PluginRepositoryReader
+                )
                 reader = PluginRepositoryReader(f, self.checkPluginEntry)
                 reader.readXML()
                 if url != Preferences.getUI("PluginRepositoryUrl7"):
--- a/eric7/PluginManager/PluginRepositoryDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/PluginManager/PluginRepositoryDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -33,7 +33,9 @@
 
 from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired
 try:
-    from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState
+    from EricNetwork.EricSslErrorHandler import (
+        EricSslErrorHandler, EricSslErrorState
+    )
     SSL_AVAILABLE = True
 except ImportError:
     SSL_AVAILABLE = False
@@ -392,7 +394,9 @@
             self.__repositoryMissing = False
             f = QFile(self.pluginRepositoryFile)
             if f.open(QIODevice.OpenModeFlag.ReadOnly):
-                from EricXML.PluginRepositoryReader import PluginRepositoryReader
+                from EricXML.PluginRepositoryReader import (
+                    PluginRepositoryReader
+                )
                 reader = PluginRepositoryReader(f, self.addEntry)
                 reader.readXML()
                 self.repositoryList.resizeColumnToContents(0)
--- a/eric7/Plugins/PluginEricapi.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/PluginEricapi.py	Sun May 23 15:35:49 2021 +0200
@@ -127,7 +127,8 @@
         menu = ericApp().getObject("Project").getMenu("Apidoc")
         if menu:
             menu.removeAction(self.__projectAct)
-            ericApp().getObject("Project").removeEricActions([self.__projectAct])
+            ericApp().getObject("Project").removeEricActions(
+                [self.__projectAct])
         self.__initialize()
     
     def __projectShowMenu(self, menuName, menu):
--- a/eric7/Plugins/PluginEricdoc.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/PluginEricdoc.py	Sun May 23 15:35:49 2021 +0200
@@ -148,7 +148,8 @@
         menu = ericApp().getObject("Project").getMenu("Apidoc")
         if menu:
             menu.removeAction(self.__projectAct)
-            ericApp().getObject("Project").removeEricActions([self.__projectAct])
+            ericApp().getObject("Project").removeEricActions(
+                [self.__projectAct])
         self.__initialize()
     
     def __projectShowMenu(self, menuName, menu):
--- a/eric7/Plugins/PluginTranslator.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/PluginTranslator.py	Sun May 23 15:35:49 2021 +0200
@@ -143,7 +143,8 @@
         global translatorPluginObject
         translatorPluginObject = self
         
-        self.__object = Translator(self, ericApp().usesDarkPalette(), self.__ui)
+        self.__object = Translator(
+            self, ericApp().usesDarkPalette(), self.__ui)
         self.__object.activate()
         ericApp().registerPluginObject("Translator", self.__object)
         
--- a/eric7/Plugins/PluginWizardEricMessageBox.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/PluginWizardEricMessageBox.py	Sun May 23 15:35:49 2021 +0200
@@ -99,9 +99,8 @@
         @param editor reference to the current editor
         @return the generated code (string)
         """
-        from WizardPlugins.EricMessageBoxWizard.EricMessageBoxWizardDialog import (
-            EricMessageBoxWizardDialog
-        )
+        from WizardPlugins.EricMessageBoxWizard.EricMessageBoxWizardDialog \
+            import EricMessageBoxWizardDialog
         dlg = EricMessageBoxWizardDialog(None)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             line, index = editor.getCursorPosition()
@@ -133,3 +132,6 @@
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
                 editor.endUndoAction()
+
+#
+# eflag: noqa = M841
--- a/eric7/Plugins/PluginWizardQFileDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/PluginWizardQFileDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -94,14 +94,16 @@
             self.tr('EricFileDialog Wizard'),
             self.tr('E&5FileDialog Wizard...'), 0, 0, self,
             'wizards_e5filedialog')
-        self.ericFileDialogAction.setStatusTip(self.tr('EricFileDialog Wizard'))
+        self.ericFileDialogAction.setStatusTip(self.tr(
+            'EricFileDialog Wizard'))
         self.ericFileDialogAction.setWhatsThis(self.tr(
             """<b>EricFileDialog Wizard</b>"""
             """<p>This wizard opens a dialog for entering all the parameters"""
             """ needed to create an EricFileDialog. The generated code is"""
             """ inserted at the current cursor position.</p>"""
         ))
-        self.ericFileDialogAction.triggered.connect(self.__handleEricFileDialog)
+        self.ericFileDialogAction.triggered.connect(
+            self.__handleEricFileDialog)
         
         self.__ui.addEricActions(
             [self.qFileDialogAction, self.ericFileDialogAction],
--- a/eric7/Plugins/VcsPlugins/vcsGit/GitDiffDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsGit/GitDiffDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -53,7 +53,9 @@
         
         try:
             # insert the search widget if it is available
-            from EricWidgets.EricTextEditSearchWidget import EricTextEditSearchWidget
+            from EricWidgets.EricTextEditSearchWidget import (
+                EricTextEditSearchWidget
+            )
             self.searchWidget = EricTextEditSearchWidget(self.contentsGroup)
             self.searchWidget.setFocusPolicy(Qt.FocusPolicy.WheelFocus)
             self.searchWidget.setObjectName("searchWidget")
--- a/eric7/Plugins/VcsPlugins/vcsGit/GitDiffHighlighter.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsGit/GitDiffHighlighter.py	Sun May 23 15:35:49 2021 +0200
@@ -9,7 +9,9 @@
 
 from PyQt6.QtGui import QColor
 
-from EricGui.EricGenericDiffHighlighter import TERMINAL, EricGenericDiffHighlighter
+from EricGui.EricGenericDiffHighlighter import (
+    TERMINAL, EricGenericDiffHighlighter
+)
 
 
 class GitDiffHighlighter(EricGenericDiffHighlighter):
--- a/eric7/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -52,8 +52,10 @@
         self.submoduleUrlCombo.addItems(submoduleUrlHistory)
         self.submoduleUrlCombo.setEditText("")
         
-        self.submoduleUrlDirCompleter = EricDirCompleter(self.submoduleUrlCombo)
-        self.submoduleDirCompleter = EricDirCompleter(self.submoduleDirEdit)
+        self.submoduleUrlDirCompleter = EricDirCompleter(
+            self.submoduleUrlCombo)
+        self.submoduleDirCompleter = EricDirCompleter(
+            self.submoduleDirEdit)
         
         ipath = (
             Preferences.getMultiProject("Workspace") or
--- a/eric7/Plugins/VcsPlugins/vcsMercurial/HgDiffHighlighter.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsMercurial/HgDiffHighlighter.py	Sun May 23 15:35:49 2021 +0200
@@ -7,7 +7,9 @@
 Module implementing a syntax highlighter for unified and context diff outputs.
 """
 
-from EricGui.EricGenericDiffHighlighter import TERMINAL, EricGenericDiffHighlighter
+from EricGui.EricGenericDiffHighlighter import (
+    TERMINAL, EricGenericDiffHighlighter
+)
 
 
 class HgDiffHighlighter(EricGenericDiffHighlighter):
--- a/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Sun May 23 15:35:49 2021 +0200
@@ -849,4 +849,5 @@
         """
         Private method to open the configuration dialog.
         """
-        ericApp().getObject("UserInterface").showPreferences("zzz_mercurialPage")
+        ericApp().getObject("UserInterface").showPreferences(
+            "zzz_mercurialPage")
--- a/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py	Sun May 23 15:35:49 2021 +0200
@@ -1431,7 +1431,7 @@
         for extensionMenuTitle in sorted(self.__extensionMenuTitles):
             extensionName = self.__extensionMenuTitles[extensionMenuTitle]
             extensionMenu = self.__extensions[extensionName].initMenu(
-                    self.__extensionsMenu)
+                self.__extensionsMenu)
             self.__extensionMenus[extensionName] = extensionMenu
             self.__extensionsMenu.addMenu(extensionMenu)
         self.vcs.activeExtensionsChanged.connect(self.__showExtensionMenu)
@@ -1784,7 +1784,8 @@
         """
         Private method to open the configuration dialog.
         """
-        ericApp().getObject("UserInterface").showPreferences("zzz_mercurialPage")
+        ericApp().getObject("UserInterface").showPreferences(
+            "zzz_mercurialPage")
     
     def __hgCloseBranch(self):
         """
--- a/eric7/Plugins/VcsPlugins/vcsPySvn/SvnDiffHighlighter.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsPySvn/SvnDiffHighlighter.py	Sun May 23 15:35:49 2021 +0200
@@ -7,7 +7,9 @@
 Module implementing a syntax highlighter for unified and context diff outputs.
 """
 
-from EricGui.EricGenericDiffHighlighter import TERMINAL, EricGenericDiffHighlighter
+from EricGui.EricGenericDiffHighlighter import (
+    TERMINAL, EricGenericDiffHighlighter
+)
 
 
 class SvnDiffHighlighter(EricGenericDiffHighlighter):
--- a/eric7/Plugins/VcsPlugins/vcsSubversion/SvnDiffHighlighter.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsSubversion/SvnDiffHighlighter.py	Sun May 23 15:35:49 2021 +0200
@@ -7,7 +7,9 @@
 Module implementing a syntax highlighter for unified and context diff outputs.
 """
 
-from EricGui.EricGenericDiffHighlighter import TERMINAL, EricGenericDiffHighlighter
+from EricGui.EricGenericDiffHighlighter import (
+    TERMINAL, EricGenericDiffHighlighter
+)
 
 
 class SvnDiffHighlighter(EricGenericDiffHighlighter):
--- a/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Sun May 23 15:35:49 2021 +0200
@@ -1091,7 +1091,8 @@
             if self.filenameOnly:
                 tabName = os.path.basename(newName)
             else:
-                tabName = ericApp().getObject("Project").getRelativePath(newName)
+                tabName = ericApp().getObject("Project").getRelativePath(
+                    newName)
             if len(tabName) > self.maxFileNameChars:
                 tabName = "...{0}".format(tabName[-self.maxFileNameChars:])
             index = self.currentTabWidget.indexOf(editor)
@@ -1353,7 +1354,8 @@
                 switched = watched.parent() is not self.currentTabWidget
                 self.currentTabWidget = watched.parent()
                 if switched:
-                    index = self.currentTabWidget.selectTab(event.position().toPoint())
+                    index = self.currentTabWidget.selectTab(
+                        event.position().toPoint())
                     switched = (
                         self.currentTabWidget.widget(index) is
                         self.activeWindow()
--- a/eric7/Plugins/WizardPlugins/SetupWizard/SetupWizardDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/WizardPlugins/SetupWizard/SetupWizardDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -113,8 +113,10 @@
         request.setAttribute(
             QNetworkRequest.Attribute.CacheLoadControlAttribute,
             QNetworkRequest.CacheLoadControl.AlwaysNetwork)
-        reply = ericApp().getObject("UserInterface").networkAccessManager().get(
-            request)
+        reply = (
+            ericApp().getObject("UserInterface").networkAccessManager()
+            .get(request)
+        )
         reply.finished.connect(lambda: self.__classifiersDownloadDone(reply))
         self.__replies.append(reply)
 
--- a/eric7/Preferences/ConfigurationDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ConfigurationDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -123,11 +123,12 @@
             
             from VirtualEnv.VirtualenvManager import VirtualenvManager
             try:
-                self.virtualenvManager = ericApp().getObject("VirtualEnvManager")
+                self.virtualenvManager = ericApp().getObject(
+                    "VirtualEnvManager")
             except KeyError:
                 self.virtualenvManager = VirtualenvManager(self)
                 ericApp().registerObject("VirtualEnvManager",
-                                       self.virtualenvManager)
+                                         self.virtualenvManager)
         
         if displayMode == ConfigurationMode.DEFAULTMODE:
             self.configItems = {
@@ -508,7 +509,8 @@
         self.leftVBoxLayout.setSpacing(0)
         self.leftVBoxLayout.setObjectName("leftVBoxLayout")
         self.configListSearch = QLineEdit(self)
-        self.configListSearch.setPlaceholderText(self.tr("Enter search text..."))
+        self.configListSearch.setPlaceholderText(
+            self.tr("Enter search text..."))
         self.configListSearch.setClearButtonEnabled(True)
         self.configListSearch.setObjectName("configListSearch")
         self.configListSearch.setClearButtonEnabled(True)
--- a/eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Sun May 23 15:35:49 2021 +0200
@@ -44,7 +44,9 @@
             self.execLineEdit.setWhatsThis(t)
         
         try:
-            backends = ericApp().getObject("DebugServer").getSupportedLanguages()
+            backends = (
+                ericApp().getObject("DebugServer").getSupportedLanguages()
+            )
             for backend in sorted(backends):
                 self.passiveDbgBackendCombo.addItem(backend)
         except KeyError:
--- a/eric7/Preferences/ConfigurationPages/EditorAPIsPage.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/EditorAPIsPage.py	Sun May 23 15:35:49 2021 +0200
@@ -132,7 +132,8 @@
         apiProjectTypes = sorted(
             [("", "")] +
             [(trans, ptype) for ptype, trans in
-                ericApp().getObject("Project").getProjectTypes(language).items()
+                ericApp().getObject("Project").getProjectTypes(language)
+                .items()
              ]
         )
         for projectTypeStr, projectType in apiProjectTypes:
--- a/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py	Sun May 23 15:35:49 2021 +0200
@@ -570,7 +570,8 @@
         )
         
         if ok:
-            from Preferences.HighlightingStylesFile import (HighlightingStylesFile
+            from Preferences.HighlightingStylesFile import (
+                HighlightingStylesFile
             )
             highlightingStylesFile = HighlightingStylesFile()
             highlightingStylesFile.writeFile(fn, lexers)
--- a/eric7/Preferences/ConfigurationPages/EmailPage.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/EmailPage.py	Sun May 23 15:35:49 2021 +0200
@@ -17,7 +17,9 @@
 from EricWidgets.EricApplication import ericApp
 from EricGui.EricOverrideCursor import EricOverrideCursor
 
-from EricNetwork.EricGoogleMailHelpers import getInstallCommand, RequiredPackages
+from EricNetwork.EricGoogleMailHelpers import (
+    getInstallCommand, RequiredPackages
+)
 
 from .ConfigurationPageBase import ConfigurationPageBase
 from .Ui_EmailPage import Ui_EmailPage
--- a/eric7/Preferences/ConfigurationPages/NetworkPage.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/NetworkPage.py	Sun May 23 15:35:49 2021 +0200
@@ -41,25 +41,32 @@
         self.downloadDirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE)
         
         self.ftpProxyTypeCombo.addItem(
-            self.tr("No FTP Proxy"), EricFtpProxyType.NO_PROXY.value)
+            self.tr("No FTP Proxy"),
+            EricFtpProxyType.NO_PROXY.value)
         self.ftpProxyTypeCombo.addItem(
             self.tr("No Proxy Authentication required"),
             EricFtpProxyType.NON_AUTHORIZING.value)
         self.ftpProxyTypeCombo.addItem(
-            self.tr("User@Server"), EricFtpProxyType.USER_SERVER.value)
+            self.tr("User@Server"),
+            EricFtpProxyType.USER_SERVER.value)
         self.ftpProxyTypeCombo.addItem(
-            self.tr("SITE"), EricFtpProxyType.SITE.value)
+            self.tr("SITE"),
+            EricFtpProxyType.SITE.value)
         self.ftpProxyTypeCombo.addItem(
-            self.tr("OPEN"), EricFtpProxyType.OPEN.value)
+            self.tr("OPEN"),
+            EricFtpProxyType.OPEN.value)
         self.ftpProxyTypeCombo.addItem(
             self.tr("User@Proxyuser@Server"),
             EricFtpProxyType.USER_PROXYUSER_SERVER.value)
         self.ftpProxyTypeCombo.addItem(
-            self.tr("Proxyuser@Server"), EricFtpProxyType.PROXYUSER_SERVER.value)
+            self.tr("Proxyuser@Server"),
+            EricFtpProxyType.PROXYUSER_SERVER.value)
         self.ftpProxyTypeCombo.addItem(
-            self.tr("AUTH and RESP"), EricFtpProxyType.AUTH_RESP.value)
+            self.tr("AUTH and RESP"),
+            EricFtpProxyType.AUTH_RESP.value)
         self.ftpProxyTypeCombo.addItem(
-            self.tr("Bluecoat Proxy"), EricFtpProxyType.BLUECOAT.value)
+            self.tr("Bluecoat Proxy"),
+            EricFtpProxyType.BLUECOAT.value)
         
         # set initial values
         self.downloadDirPicker.setText(Preferences.getUI("DownloadPath"))
@@ -231,8 +238,10 @@
         @param index index of the selected item (integer)
         """
         proxyType = EricFtpProxyType(self.ftpProxyTypeCombo.itemData(index))
-        self.ftpProxyHostEdit.setEnabled(proxyType != EricFtpProxyType.NO_PROXY)
-        self.ftpProxyPortSpin.setEnabled(proxyType != EricFtpProxyType.NO_PROXY)
+        self.ftpProxyHostEdit.setEnabled(
+            proxyType != EricFtpProxyType.NO_PROXY)
+        self.ftpProxyPortSpin.setEnabled(
+            proxyType != EricFtpProxyType.NO_PROXY)
         self.ftpProxyUserEdit.setEnabled(
             proxyType not in [EricFtpProxyType.NO_PROXY,
                               EricFtpProxyType.NON_AUTHORIZING])
--- a/eric7/Preferences/ShortcutDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ShortcutDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -172,26 +172,14 @@
         self.keyIndex += 1
         
         if self.keyIndex == 1:
-            self.__setKeyEditText(
-                QKeySequence(
-                    self.keys[0]
-                ).toString(QKeySequence.SequenceFormat.NativeText)
-            )
+            ks = QKeySequence(self.keys[0])
         elif self.keyIndex == 2:
-            self.__setKeyEditText(
-                QKeySequence(
-                    self.keys[0], self.keys[1]
-                ).toString(QKeySequence.SequenceFormat.NativeText)
-            )
+            ks = QKeySequence(self.keys[0], self.keys[1])
         elif self.keyIndex == 3:
-            self.__setKeyEditText(
-                QKeySequence(
-                    self.keys[0], self.keys[1], self.keys[2]
-                ).toString(QKeySequence.SequenceFormat.NativeText)
-            )
+            ks = QKeySequence(self.keys[0], self.keys[1], self.keys[2])
         elif self.keyIndex == 4:
-            self.__setKeyEditText(
-                QKeySequence(
-                    self.keys[0], self.keys[1], self.keys[2], self.keys[3]
-                ).toString(QKeySequence.SequenceFormat.NativeText)
-            )
+            ks = QKeySequence(
+                self.keys[0], self.keys[1], self.keys[2], self.keys[3])
+        self.__setKeyEditText(
+            ks.toString(QKeySequence.SequenceFormat.NativeText)
+        )
--- a/eric7/Preferences/ShortcutsDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/ShortcutsDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -169,12 +169,16 @@
             
             self.bookmarkItem = self.__generateCategoryItem(
                 self.tr("Bookmarks"))
-            for act in ericApp().getObject("ViewManager").getActions('bookmark'):
+            for act in (
+                ericApp().getObject("ViewManager").getActions('bookmark')
+            ):
                 self.__generateShortcutItem(self.bookmarkItem, act)
             
             self.spellingItem = self.__generateCategoryItem(
                 self.tr("Spelling"))
-            for act in ericApp().getObject("ViewManager").getActions('spelling'):
+            for act in (
+                ericApp().getObject("ViewManager").getActions('spelling')
+            ):
                 self.__generateShortcutItem(self.spellingItem, act)
             
             actions = ericApp().getObject("ViewManager").getActions('window')
--- a/eric7/Preferences/__init__.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Preferences/__init__.py	Sun May 23 15:35:49 2021 +0200
@@ -2086,7 +2086,7 @@
     """
     if key in ["DefaultEncoding", "DefaultOpenFilter", "DefaultSaveFilter",
                "SpellCheckingDefaultLanguage", "SpellCheckingPersonalWordList",
-               "SpellCheckingPersonalExcludeList", "DocstringType", 
+               "SpellCheckingPersonalExcludeList", "DocstringType",
                "PreviewMarkdownHTMLFormat", "PreviewRestDocutilsHTMLFormat",
                "WrapLongLinesMode", "WrapVisualFlag", "WrapIndentMode",
                "CallTipsStyle", "CallTipsPosition", "AutoCompletionSource",
--- a/eric7/Project/Project.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Project/Project.py	Sun May 23 15:35:49 2021 +0200
@@ -3042,7 +3042,7 @@
                 # rescan project tasks
                 if Preferences.getProject("TasksProjectRescanOnOpen"):
                     ericApp().getObject("TaskViewer"
-                                      ).regenerateProjectTasks(quiet=True)
+                                        ).regenerateProjectTasks(quiet=True)
                 
                 if restoreSession:
                     # open the main script
--- a/eric7/PyUnit/UnittestDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/PyUnit/UnittestDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -579,20 +579,17 @@
         @rtype list of str
         """
         selectedTests = []
-        if parent is None:
-            # top level
-            itemsList = [
-                self.discoveryList.topLevelItem(index)
-                for index in range(self.discoveryList.topLevelItemCount())
-            ]
-        else:
-            itemsList = [
-                parent.child(index)
-                for index in range(parent.childCount())
-            ]
+        itemsList = [
+            self.discoveryList.topLevelItem(index)
+            for index in range(self.discoveryList.topLevelItemCount())
+        ] if parent is None else [
+            parent.child(index)
+            for index in range(parent.childCount())
+        ]
         
         for itm in itemsList:
-            if (itm.checkState(0) == Qt.CheckState.Checked and
+            if (
+                itm.checkState(0) == Qt.CheckState.Checked and
                 itm.childCount() == 0
             ):
                 selectedTests.append(
--- a/eric7/QScintilla/Exporters/ExporterHTML.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/QScintilla/Exporters/ExporterHTML.py	Sun May 23 15:35:49 2021 +0200
@@ -476,7 +476,7 @@
         
         if html:
             with EricOverrideCursor(), open(filename, "w", encoding="utf-8"
-                                          ) as f:
+                                            ) as f:
                 try:
                     f.write(html)
                 except OSError as err:
--- a/eric7/QScintilla/Exporters/ExporterPDF.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/QScintilla/Exporters/ExporterPDF.py	Sun May 23 15:35:49 2021 +0200
@@ -557,7 +557,7 @@
                 self.pr.fontSize = PDF_FONTSIZE_DEFAULT
         
         with EricOverrideCursor(), open(filename, "w", encoding="cp1250",
-                                      errors="backslashreplace") as f:
+                                        errors="backslashreplace") as f:
             # save file in win ansi using cp1250
             try:
                 # initialise PDF rendering
--- a/eric7/Snapshot/SnapWidget.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Snapshot/SnapWidget.py	Sun May 23 15:35:49 2021 +0200
@@ -393,7 +393,9 @@
                 self.tr("eric Snapshot"),
                 self.tr(
                     """The application contains an unsaved snapshot."""),
-                EricMessageBox.Abort | EricMessageBox.Discard | EricMessageBox.Save
+                EricMessageBox.Abort |
+                EricMessageBox.Discard |
+                EricMessageBox.Save
             )
             if res == EricMessageBox.Abort:
                 evt.ignore()
--- a/eric7/Snapshot/SnapshotFreehandGrabber.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Snapshot/SnapshotFreehandGrabber.py	Sun May 23 15:35:49 2021 +0200
@@ -254,7 +254,8 @@
         """
         self.__pBefore = evt.position().toPoint()
         
-        self.__showHelp = not self.__helpTextRect.contains(evt.position().toPoint())
+        self.__showHelp = not self.__helpTextRect.contains(
+            evt.position().toPoint())
         if evt.button() == Qt.MouseButton.LeftButton:
             self.__mouseDown = True
             self.__dragStartPoint = evt.position().toPoint()
@@ -277,7 +278,8 @@
         
         @param evt mouse move event (QMouseEvent)
         """
-        shouldShowHelp = not self.__helpTextRect.contains(evt.position().toPoint())
+        shouldShowHelp = not self.__helpTextRect.contains(
+            evt.position().toPoint())
         if shouldShowHelp != self.__showHelp:
             self.__showHelp = shouldShowHelp
             self.update()
@@ -289,7 +291,8 @@
             else:
                 # moving the whole selection
                 p = evt.position().toPoint() - self.__pBefore  # Offset
-                self.__pBefore = evt.position().toPoint()  # save position for next iteration
+                self.__pBefore = evt.position().toPoint()
+                # save position for next iteration
                 self.__selection.translate(p)
             
             self.update()
@@ -311,7 +314,8 @@
         """
         self.__mouseDown = False
         self.__newSelection = False
-        if self.__selection.containsPoint(evt.position().toPoint(), Qt.FillRule.WindingFill):
+        if self.__selection.containsPoint(evt.position().toPoint(),
+                                          Qt.FillRule.WindingFill):
             self.setCursor(Qt.CursorShape.OpenHandCursor)
         self.update()
     
--- a/eric7/Snapshot/SnapshotPreview.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Snapshot/SnapshotPreview.py	Sun May 23 15:35:49 2021 +0200
@@ -73,9 +73,9 @@
         @param evt mouse move event (QMouseEvent)
         """
         if (
-            self.__mouseClickPoint != QPoint(0, 0) and
-            (evt.position().toPoint() - self.__mouseClickPoint).manhattanLength() >
-            QApplication.startDragDistance()
+            self.__mouseClickPoint != QPoint(0, 0) and (
+                evt.position().toPoint() - self.__mouseClickPoint
+            ).manhattanLength() > QApplication.startDragDistance()
         ):
             self.__mouseClickPoint = QPoint(0, 0)
             self.startDrag.emit()
--- a/eric7/Snapshot/SnapshotRegionGrabber.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Snapshot/SnapshotRegionGrabber.py	Sun May 23 15:35:49 2021 +0200
@@ -286,7 +286,8 @@
         
         @param evt mouse press event (QMouseEvent)
         """
-        self.__showHelp = not self.__helpTextRect.contains(evt.position().toPoint())
+        self.__showHelp = not self.__helpTextRect.contains(
+            evt.position().toPoint())
         if evt.button() == Qt.MouseButton.LeftButton:
             self.__mouseDown = True
             self.__dragStartPoint = evt.position().toPoint()
@@ -308,7 +309,8 @@
         
         @param evt mouse move event (QMouseEvent)
         """
-        shouldShowHelp = not self.__helpTextRect.contains(evt.position().toPoint())
+        shouldShowHelp = not self.__helpTextRect.contains(
+            evt.position().toPoint())
         if shouldShowHelp != self.__showHelp:
             self.__showHelp = shouldShowHelp
             self.update()
@@ -324,7 +326,10 @@
                 # moving the whole selection
                 r = self.rect().normalized()
                 s = self.__selectionBeforeDrag.normalized()
-                p = s.topLeft() + evt.position().toPoint() - self.__dragStartPoint
+                p = (
+                    s.topLeft() + evt.position().toPoint() -
+                    self.__dragStartPoint
+                )
                 r.setBottomRight(
                     r.bottomRight() - QPoint(s.width(), s.height()) +
                     QPoint(1, 1))
--- a/eric7/UI/CodeDocumentationViewer.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/UI/CodeDocumentationViewer.py	Sun May 23 15:35:49 2021 +0200
@@ -15,7 +15,9 @@
     QLineEdit, QTextBrowser, QToolTip
 )
 
-from EricWidgets.EricTextEditSearchWidget import EricTextEditSearchWidget, EricTextEditType
+from EricWidgets.EricTextEditSearchWidget import (
+    EricTextEditSearchWidget, EricTextEditType
+)
 from EricWidgets.EricApplication import ericApp
 
 import Preferences
--- a/eric7/UI/DiffHighlighter.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/UI/DiffHighlighter.py	Sun May 23 15:35:49 2021 +0200
@@ -7,7 +7,9 @@
 Module implementing a syntax highlighter for unified and context diff outputs.
 """
 
-from EricGui.EricGenericDiffHighlighter import TERMINAL, EricGenericDiffHighlighter
+from EricGui.EricGenericDiffHighlighter import (
+    TERMINAL, EricGenericDiffHighlighter
+)
 
 
 class DiffHighlighter(EricGenericDiffHighlighter):
--- a/eric7/UI/UserInterface.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/UI/UserInterface.py	Sun May 23 15:35:49 2021 +0200
@@ -60,7 +60,9 @@
     EricNetworkProxyFactory, proxyAuthenticationRequired
 )
 try:
-    from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState
+    from EricNetwork.EricSslErrorHandler import (
+        EricSslErrorHandler, EricSslErrorState
+    )
     SSL_AVAILABLE = True
 except ImportError:
     SSL_AVAILABLE = False
@@ -610,7 +612,8 @@
         if self.numbersViewer is not None:
             ericApp().registerObject("Numbers", self.numbersViewer)
         if self.codeDocumentationViewer is not None:
-            ericApp().registerObject("DocuViewer", self.codeDocumentationViewer)
+            ericApp().registerObject("DocuViewer",
+                                     self.codeDocumentationViewer)
         if self.microPythonWidget is not None:
             ericApp().registerObject("MicroPython", self.microPythonWidget)
         
@@ -824,7 +827,9 @@
         
         @param debugServer reference to the debug server object
         """
-        from EricWidgets.EricToolBox import EricVerticalToolBox, EricHorizontalToolBox
+        from EricWidgets.EricToolBox import (
+            EricVerticalToolBox, EricHorizontalToolBox
+        )
         
         logging.debug("Creating Toolboxes Layout...")
         
@@ -6354,7 +6359,9 @@
         """
         Private slot to show the certificates management dialog.
         """
-        from EricNetwork.EricSslCertificatesDialog import EricSslCertificatesDialog
+        from EricNetwork.EricSslCertificatesDialog import (
+            EricSslCertificatesDialog
+        )
         
         dlg = EricSslCertificatesDialog(self)
         dlg.exec()
--- a/eric7/Utilities/BackgroundService.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Utilities/BackgroundService.py	Sun May 23 15:35:49 2021 +0200
@@ -220,7 +220,9 @@
                         "<p>Note: The client can be restarted by opening and"
                         " accepting the preferences dialog or reloading/"
                         "changing the project.</p>").format(lang),
-                    EricMessageBox.Yes | EricMessageBox.No | EricMessageBox.Retry,
+                    EricMessageBox.Yes |
+                    EricMessageBox.No |
+                    EricMessageBox.Retry,
                     EricMessageBox.Yes)
                 
                 if res == EricMessageBox.Retry:
--- a/eric7/WebBrowser/GreaseMonkey/GreaseMonkeyConfiguration/GreaseMonkeyConfigurationListWidget.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/WebBrowser/GreaseMonkey/GreaseMonkeyConfiguration/GreaseMonkeyConfigurationListWidget.py	Sun May 23 15:35:49 2021 +0200
@@ -64,7 +64,8 @@
         @param evt mouse press event (QMouseEvent)
         """
         if self.__containsRemoveIcon(evt.position().toPoint()):
-            self.removeItemRequested.emit(self.itemAt(evt.position().toPoint()))
+            self.removeItemRequested.emit(
+                self.itemAt(evt.position().toPoint()))
             return
         
         super().mousePressEvent(evt)
@@ -76,7 +77,8 @@
         @param evt mouse press event (QMouseEvent)
         """
         if self.__containsRemoveIcon(evt.position().toPoint()):
-            self.removeItemRequested.emit(self.itemAt(evt.position().toPoint()))
+            self.removeItemRequested.emit(
+                self.itemAt(evt.position().toPoint()))
             return
         
         super().mouseDoubleClickEvent(
--- a/eric7/WebBrowser/TabManager/TabManagerWidget.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/WebBrowser/TabManager/TabManagerWidget.py	Sun May 23 15:35:49 2021 +0200
@@ -249,7 +249,8 @@
             flags |= Qt.ItemFlag.ItemIsUserCheckable
         else:
             flags |= (
-                Qt.ItemFlag.ItemIsUserCheckable | Qt.ItemFlag.ItemIsAutoTristate
+                Qt.ItemFlag.ItemIsUserCheckable |
+                Qt.ItemFlag.ItemIsAutoTristate
             )
         itm.setFlags(itm.flags() | flags)
         itm.setCheckState(0, Qt.CheckState.Unchecked)
--- a/eric7/WebBrowser/Tools/PrintToPdfDialog.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/WebBrowser/Tools/PrintToPdfDialog.py	Sun May 23 15:35:49 2021 +0200
@@ -36,7 +36,8 @@
         super().__init__(parent)
         self.setupUi(self)
         
-        self.pdfFilePicker.setMode(EricPathPickerModes.SAVE_FILE_OVERWRITE_MODE)
+        self.pdfFilePicker.setMode(
+            EricPathPickerModes.SAVE_FILE_OVERWRITE_MODE)
         self.pdfFilePicker.setFilters(self.tr(
             "PDF Files (*.pdf);;"
             "All Files (*)"))
--- a/eric7/WebBrowser/UrlBar/FavIconLabel.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/WebBrowser/UrlBar/FavIconLabel.py	Sun May 23 15:35:49 2021 +0200
@@ -86,10 +86,11 @@
         @param evt reference to the mouse event (QMouseEvent)
         """
         if (
-            evt.button() == Qt.MouseButton.LeftButton and
-            ((evt.position().toPoint() - self.__dragStartPos).manhattanLength() >
-                QApplication.startDragDistance()) and
-            self.__browser is not None
+            evt.button() == Qt.MouseButton.LeftButton and (
+                (evt.position().toPoint() -
+                 self.__dragStartPos).manhattanLength() >
+                QApplication.startDragDistance()
+            ) and self.__browser is not None
         ):
             drag = QDrag(self)
             mimeData = QMimeData()
--- a/eric7/WebBrowser/WebBrowserPage.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/WebBrowser/WebBrowserPage.py	Sun May 23 15:35:49 2021 +0200
@@ -692,7 +692,7 @@
         if SSL_AVAILABLE and self.__sslConfiguration is not None:
             from EricNetwork.EricSslInfoWidget import EricSslInfoWidget
             widget = EricSslInfoWidget(self.url(), self.__sslConfiguration,
-                                     self.view())
+                                       self.view())
             widget.showAt(pos)
         else:
             EricMessageBox.warning(
--- a/eric7/WebBrowser/WebBrowserTabBar.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/WebBrowser/WebBrowserTabBar.py	Sun May 23 15:35:49 2021 +0200
@@ -11,7 +11,9 @@
 from PyQt6.QtWidgets import QLabel
 
 from EricWidgets.EricTabWidget import EricWheelTabBar
-from EricWidgets.EricPassivePopup import EricPassivePopup, EricPassivePopupStyle
+from EricWidgets.EricPassivePopup import (
+    EricPassivePopup, EricPassivePopupStyle
+)
 
 import Preferences
 
--- a/scripts/install.py	Sun May 23 13:33:13 2021 +0200
+++ b/scripts/install.py	Sun May 23 15:35:49 2021 +0200
@@ -1011,7 +1011,8 @@
         if False:
             copyDesktopFile(
                 os.path.join(sourceDir, "linux", "eric7_browser.desktop.in"),
-                os.path.join(localPath, "applications", "eric7_browser.desktop"))
+                os.path.join(localPath, "applications",
+                             "eric7_browser.desktop"))
 
 
 def createWindowsLinks():

eric ide

mercurial