--- a/src/eric7/Debugger/DebugUI.py Wed Apr 10 17:03:56 2024 +0200 +++ b/src/eric7/Debugger/DebugUI.py Wed May 15 10:45:50 2024 +0200 @@ -45,8 +45,6 @@ @signal resetUI(full) emitted to reset the UI partially or fully @signal exceptionInterrupt() emitted after the execution was interrupted by an exception and acknowledged by the user - @signal appendStdout(msg) emitted when the client program has terminated - and the display of the termination dialog is suppressed @signal processChangedProjectFiles() emitted to indicate, that changed project files should be processed """ @@ -56,7 +54,6 @@ exceptionInterrupt = pyqtSignal() debuggingStarted = pyqtSignal(str) debuggingFinished = pyqtSignal() - appendStdout = pyqtSignal(str) processChangedProjectFiles = pyqtSignal() def __init__(self, ui, vm, debugServer, debugViewer, project): @@ -1278,7 +1275,7 @@ """ self.__clientDebuggerIds.add(debuggerId) - def __clientLine(self, fn, line, debuggerId, threadName, forStack): # noqa: U100 + def __clientLine(self, fn, line, debuggerId, _threadName, forStack): """ Private method to handle a change to the current line. @@ -1288,7 +1285,7 @@ @type int @param debuggerId ID of the debugger backend @type str - @param threadName name of the thread signaling the event + @param _threadName name of the thread signaling the event (unused) @type str @param forStack flag indicating this is for a stack dump @type bool @@ -1415,7 +1412,7 @@ d = os.path.dirname(ms) if os.path.exists(os.path.join(d, filename)): filename = os.path.join(d, filename) - self.viewmanager.setFileLine(filename, lineNo, True, True) + self.viewmanager.setFileLine(filename, lineNo, error=True) EricMessageBox.critical( self.ui, Program, @@ -1463,7 +1460,7 @@ if stackTrace: with contextlib.suppress(UnicodeError, OSError): file, line = stackTrace[0][:2] - source, encoding = Utilities.readEncodedFile(file) + source, _encoding = Utilities.readEncodedFile(file) source = source.splitlines(True) if len(source) >= line: lineFlags = Utilities.extractLineFlags(source[line - 1].strip()) @@ -1475,7 +1472,7 @@ res = EricMessageBox.No if res != EricMessageBox.No: self.viewmanager.setFileLine( - stackTrace[0][0], stackTrace[0][1], True + stackTrace[0][0], stackTrace[0][1], error=True ) if res != EricMessageBox.No: self.ui.activateWindow() @@ -1545,7 +1542,7 @@ self.__continue(debuggerId) def __clientSignal( - self, message, filename, lineNo, funcName, funcArgs, debuggerId # noqa: U100 + self, message, filename, lineNo, _funcName, _funcArgs, _debuggerId ): """ Private method to handle a signal generated on the client side. @@ -1556,17 +1553,17 @@ @type str @param lineNo line number of the syntax error position @type int - @param funcName name of the function causing the signal + @param _funcName name of the function causing the signal (unused) @type str - @param funcArgs function arguments + @param _funcArgs function arguments (unused) @type str - @param debuggerId ID of the debugger backend + @param _debuggerId ID of the debugger backend (unused) @type str """ self.ui.raise_() self.ui.activateWindow() QApplication.processEvents() - self.viewmanager.setFileLine(filename, lineNo, True) + self.viewmanager.setFileLine(filename, lineNo, error=True) EricMessageBox.critical( self.ui, Program, @@ -1681,7 +1678,7 @@ """ self.debugServer.remoteClientDisassembly(debuggerId) - def __clientBreakConditionError(self, filename, lineno, debuggerId): # noqa: U100 + def __clientBreakConditionError(self, filename, lineno, _debuggerId): """ Private method to handle a condition error of a breakpoint. @@ -1689,7 +1686,7 @@ @type str @param lineno line umber of the breakpoint @type int - @param debuggerId ID of the debugger backend + @param _debuggerId ID of the debugger backend (unused) @type str """ from .EditBreakpointDialog import EditBreakpointDialog @@ -1739,7 +1736,7 @@ ) Preferences.Prefs.rsettings.sync() - def __clientWatchConditionError(self, cond, debuggerId): # noqa: U100 + def __clientWatchConditionError(self, cond, _debuggerId): """ Private method to handle a expression error of a watch expression. @@ -1747,7 +1744,7 @@ @param cond expression of the watch expression @type str - @param debuggerId ID of the debugger backend + @param _debuggerId ID of the debugger backend (unused) @type str """ from .EditWatchpointDialog import EditWatchpointDialog