Corrected some code formatting issues. eric7

Sat, 29 Apr 2023 11:42:06 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Apr 2023 11:42:06 +0200
branch
eric7
changeset 9995
00eb2b418f8e
parent 9994
16ed71ff72bd
child 9996
6bdc1356bc39

Corrected some code formatting issues.

src/eric7/EricWidgets/EricApplication.py file | annotate | diff | comparison | revisions
src/eric7/Preferences/ConfigurationPages/WebBrowserSpellCheckingPage.py file | annotate | diff | comparison | revisions
src/eric7/QScintilla/TypingCompleters/CompleterPython.py file | annotate | diff | comparison | revisions
src/eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py file | annotate | diff | comparison | revisions
--- a/src/eric7/EricWidgets/EricApplication.py	Sat Apr 29 11:35:32 2023 +0200
+++ b/src/eric7/EricWidgets/EricApplication.py	Sat Apr 29 11:42:06 2023 +0200
@@ -286,8 +286,8 @@
         # backward compatibility for Qt < 6.5.0 or changed by user
         palette = self.palette()
         return (
-            palette.color(QPalette.ColorRole.WindowText).lightness() >
-            palette.color(QPalette.ColorRole.Window).lightness()
+            palette.color(QPalette.ColorRole.WindowText).lightness()
+            > palette.color(QPalette.ColorRole.Window).lightness()
         )
 
 
--- a/src/eric7/Preferences/ConfigurationPages/WebBrowserSpellCheckingPage.py	Sat Apr 29 11:35:32 2023 +0200
+++ b/src/eric7/Preferences/ConfigurationPages/WebBrowserSpellCheckingPage.py	Sat Apr 29 11:42:06 2023 +0200
@@ -188,7 +188,8 @@
         dlg = ManageDictionariesDialog(
             self.__writeableDirectories,
             enforceUnencryptedDownloads=self.unencryptedCheckBox.isChecked(),
-            parent=self)
+            parent=self,
+        )
         dlg.exec()
 
         self.__populateDictionariesList()
--- a/src/eric7/QScintilla/TypingCompleters/CompleterPython.py	Sat Apr 29 11:35:32 2023 +0200
+++ b/src/eric7/QScintilla/TypingCompleters/CompleterPython.py	Sat Apr 29 11:42:06 2023 +0200
@@ -116,12 +116,8 @@
                     self.editor.insert("self")
                     self.editor.setCursorPosition(line, col + 4)
             if self.__insertClosingBrace:
-                if (
-                    self.__defRX.fullmatch(txt) is not None
-                    or (
-                        self.__classRX.fullmatch(txt) is not None
-                        and txt.endswith("(")
-                    )
+                if self.__defRX.fullmatch(txt) is not None or (
+                    self.__classRX.fullmatch(txt) is not None and txt.endswith("(")
                 ):
                     self.editor.insert("):")
                 else:
--- a/src/eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py	Sat Apr 29 11:35:32 2023 +0200
+++ b/src/eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py	Sat Apr 29 11:42:06 2023 +0200
@@ -186,9 +186,8 @@
         self.downloadProgress.setValue(0)
 
         url = self.dictionariesUrlEdit.text()
-        if (
-            self.__enforceUnencryptedDownloads
-            or Preferences.getWebBrowser("ForceHttpDictionaryDownload")
+        if self.__enforceUnencryptedDownloads or Preferences.getWebBrowser(
+            "ForceHttpDictionaryDownload"
         ):
             url = url.replace("https://", "http://")
 
@@ -386,9 +385,8 @@
         if self.__online:
             if self.__dictionariesToDownload:
                 url = self.__dictionariesToDownload.pop(0)
-                if (
-                    self.__enforceUnencryptedDownloads
-                    or Preferences.getWebBrowser("ForceHttpDictionaryDownload")
+                if self.__enforceUnencryptedDownloads or Preferences.getWebBrowser(
+                    "ForceHttpDictionaryDownload"
                 ):
                     url = url.replace("https://", "http://")
                 self.statusLabel.setText(url)

eric ide

mercurial