src/eric7/QScintilla/Editor.py

branch
eric7
changeset 9786
f94b530722af
parent 9758
6d24ab9c0404
child 9790
6b14962d9d31
--- a/src/eric7/QScintilla/Editor.py	Tue Feb 21 10:56:54 2023 +0100
+++ b/src/eric7/QScintilla/Editor.py	Wed Feb 22 07:43:56 2023 +0100
@@ -411,9 +411,9 @@
                             None,
                             self.tr("Open File"),
                             self.tr(
-                                "<p>The size of the file <b>{0}</b> is <b>{1} KB</b> and"
-                                " exceeds the configured limit of <b>{2} KB</b>. It will"
-                                " not be opened!</p>"
+                                "<p>The size of the file <b>{0}</b> is <b>{1} KB</b>"
+                                " and exceeds the configured limit of <b>{2} KB</b>."
+                                " It will not be opened!</p>"
                             ).format(
                                 self.fileName,
                                 fileSizeKB,
@@ -2712,7 +2712,7 @@
         @param fileName name of the file (string)
         """
         idxList = []
-        for (ln, _, _, _, _) in self.breaks.values():
+        for ln, _, _, _, _ in self.breaks.values():
             index = self.breakpointModel.getBreakPointIndex(fileName, ln)
             if index.isValid():
                 idxList.append(index)
@@ -7434,9 +7434,8 @@
         @rtype bool
         """
         return (
-            (self.isLocalFile() and not os.access(self.fileName, os.W_OK))
-            or self.isReadOnly()
-        )
+            self.isLocalFile() and not os.access(self.fileName, os.W_OK)
+        ) or self.isReadOnly()
 
     def refresh(self):
         """

eric ide

mercurial