--- 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", []):