src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 10321
4a017fdf316f
child 10417
c6011e501282
diff -r 1444b4bee64b -r 093dcebe5ecb src/eric7/Debugger/DebuggerInterfacePython.py
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Sun Dec 03 16:44:52 2023 +0100
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Sun Dec 03 19:46:34 2023 +0100
@@ -134,7 +134,7 @@
         proc = QProcess(self)
         if environment is not None:
             env = QProcessEnvironment()
-            for key, value in list(environment.items()):
+            for key, value in environment.items():
                 env.insert(key, value)
             proc.setProcessEnvironment(env)
         args = arguments[:]
@@ -697,7 +697,7 @@
         @return list of connected debugger backend IDs
         @rtype list of str
         """
-        return sorted(self.__connections.keys())
+        return sorted(self.__connections)
 
     def __flush(self):
         """
@@ -1041,7 +1041,7 @@
         @param temp flag indicating a temporary breakpoint
         @type bool
         """
-        debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys())
+        debuggerList = [debuggerId] if debuggerId else list(self.__connections)
         for debuggerId in debuggerList:
             self.__sendJsonCommand(
                 "RequestBreakpoint",
@@ -1068,7 +1068,7 @@
         @param enable flag indicating enabling or disabling a breakpoint
         @type bool
         """
-        debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys())
+        debuggerList = [debuggerId] if debuggerId else list(self.__connections)
         for debuggerId in debuggerList:
             self.__sendJsonCommand(
                 "RequestBreakpointEnable",
@@ -1093,7 +1093,7 @@
         @param count number of occurrences to ignore
         @type int
         """
-        debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys())
+        debuggerList = [debuggerId] if debuggerId else list(self.__connections)
         for debuggerId in debuggerList:
             self.__sendJsonCommand(
                 "RequestBreakpointIgnore",
@@ -1118,7 +1118,7 @@
         @param temp flag indicating a temporary watch expression
         @type bool
         """
-        debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys())
+        debuggerList = [debuggerId] if debuggerId else list(self.__connections)
         for debuggerId in debuggerList:
             # cond is combination of cond and special (s. watch expression
             # viewer)
@@ -1143,7 +1143,7 @@
         @param enable flag indicating enabling or disabling a watch expression
         @type bool
         """
-        debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys())
+        debuggerList = [debuggerId] if debuggerId else list(self.__connections)
         for debuggerId in debuggerList:
             # cond is combination of cond and special (s. watch expression
             # viewer)
@@ -1168,7 +1168,7 @@
         @param count number of occurrences to ignore
         @type int
         """
-        debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys())
+        debuggerList = [debuggerId] if debuggerId else list(self.__connections)
         for debuggerId in debuggerList:
             # cond is combination of cond and special (s. watch expression
             # viewer)

eric ide

mercurial