src/eric7/QScintilla/Editor.py

branch
eric7
changeset 10692
9becf9ca115c
parent 10683
779cda568acb
child 10694
f46c1e224e8a
child 10704
27d21e5163b8
child 10715
5e000d8fc96b
--- a/src/eric7/QScintilla/Editor.py	Tue Apr 23 09:29:13 2024 +0200
+++ b/src/eric7/QScintilla/Editor.py	Tue Apr 23 11:26:04 2024 +0200
@@ -2417,7 +2417,7 @@
             lineno = self.markerLine(self.lastHighlight)
             self.ensureVisible(lineno + 1)
 
-    def highlight(self, line=None, error=False, syntaxError=False):  # noqa: U100
+    def highlight(self, line=None, error=False):
         """
         Public method to highlight [or de-highlight] a particular line.
 
@@ -2426,8 +2426,6 @@
         @param error flag indicating whether the error highlight should be
             used
         @type bool
-        @param syntaxError flag indicating a syntax error (unused)
-        @type bool
         """
         if line is None:
             self.lastHighlight = None
@@ -3062,7 +3060,7 @@
                 printer.setDocName(self.noName)
             if printDialog.printRange() == QAbstractPrintDialog.PrintRange.Selection:
                 # get the selection
-                fromLine, fromIndex, toLine, toIndex = self.getSelection()
+                fromLine, _fromIndex, toLine, toIndex = self.getSelection()
                 if toIndex == 0:
                     toLine -= 1
                 # QScintilla seems to print one line more than told
@@ -6828,7 +6826,7 @@
 
         error = problems.get("error")
         if error:
-            _fn, lineno, col, code, msg = error
+            _fn, lineno, col, _code, msg = error
             self.toggleSyntaxError(lineno, col, True, msg)
 
         for _fn, lineno, col, _code, msg in problems.get("py_warnings", []):

eric ide

mercurial