--- a/src/eric7/Debugger/DebuggerInterfacePython.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/Debugger/DebuggerInterfacePython.py Mon Nov 07 17:19:58 2022 +0100 @@ -8,6 +8,7 @@ """ import contextlib +import json import logging import os import shlex @@ -1368,8 +1369,6 @@ @param sock reference to the socket the data was received from @type QTcpSocket """ - import json - try: commandDict = json.loads(jsonStr.strip()) except (TypeError, ValueError) as err: @@ -1590,8 +1589,6 @@ debuggerId is not given) @type QTcpSocket """ - import json - commandDict = { "jsonrpc": "2.0", "method": command,