src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9549
67295777d9fe
child 9624
b47dfa7a137d
--- 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,

eric ide

mercurial