src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7-maintenance
changeset 10460
3b34efa2857c
parent 10349
df7edc29cbfb
parent 10439
21c28b0f9e41
child 10534
783d835d7fe4
diff -r 411df92e881f -r 3b34efa2857c src/eric7/Debugger/DebuggerInterfacePython.py
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Sun Dec 03 14:54:00 2023 +0100
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Mon Jan 01 11:10:45 2024 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2009 - 2023 Detlev Offenbach <detlev@die-offenbachs.de>
+# Copyright (c) 2009 - 2024 Detlev Offenbach <detlev@die-offenbachs.de>
 #
 
 """
@@ -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):
         """
@@ -790,11 +790,11 @@
         """
         Public method to load a new program to debug.
 
-        @param fn the filename to debug
+        @param fn filename to debug
         @type str
-        @param argv the commandline arguments to pass to the program
-        @type str
-        @param wd the working directory for the program
+        @param argv list of command line arguments to pass to the program
+        @type list of str
+        @param wd working directory for the program
         @type str
         @param traceInterpreter flag indicating if the interpreter library
             should be traced as well
@@ -820,7 +820,7 @@
             {
                 "workdir": wd,
                 "filename": fn,
-                "argv": Utilities.parseOptionString(argv),
+                "argv": argv,
                 "traceInterpreter": traceInterpreter,
                 "multiprocess": enableMultiprocess,
                 "reportAllExceptions": reportAllExceptions,
@@ -832,11 +832,11 @@
         """
         Public method to load a new program to run.
 
-        @param fn the filename to run
+        @param fn filename to run
         @type str
-        @param argv the commandline arguments to pass to the program
-        @type str
-        @param wd the working directory for the program
+        @param argv list of command line arguments to pass to the program
+        @type list of str
+        @param wd working directory for the program
         @type str
         """
         self.__scriptName = os.path.abspath(fn)
@@ -848,7 +848,7 @@
             {
                 "workdir": wd,
                 "filename": fn,
-                "argv": Utilities.parseOptionString(argv),
+                "argv": argv,
             },
             self.__mainDebugger,
         )
@@ -857,11 +857,11 @@
         """
         Public method to load a new program to collect coverage data.
 
-        @param fn the filename to run
+        @param fn filename to run
         @type str
-        @param argv the commandline arguments to pass to the program
-        @type str
-        @param wd the working directory for the program
+        @param argv list of command line arguments to pass to the program
+        @type list of str
+        @param wd working directory for the program
         @type str
         @param erase flag indicating that coverage info should be
             cleared first
@@ -876,7 +876,7 @@
             {
                 "workdir": wd,
                 "filename": fn,
-                "argv": Utilities.parseOptionString(argv),
+                "argv": argv,
                 "erase": erase,
             },
             self.__mainDebugger,
@@ -886,11 +886,11 @@
         """
         Public method to load a new program to collect profiling data.
 
-        @param fn the filename to run
+        @param fn filename to run
         @type str
-        @param argv the commandline arguments to pass to the program
-        @type str
-        @param wd the working directory for the program
+        @param argv list of command line arguments to pass to the program
+        @type list of str
+        @param wd working directory for the program
         @type str
         @param erase flag indicating that timing info should be cleared
             first
@@ -905,7 +905,7 @@
             {
                 "workdir": wd,
                 "filename": fn,
-                "argv": Utilities.parseOptionString(argv),
+                "argv": argv,
                 "erase": erase,
             },
             self.__mainDebugger,
@@ -917,7 +917,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param stmt the Python statement to execute.
+        @param stmt Python statement to execute.
         @type str
         """
         self.__sendJsonCommand(
@@ -993,7 +993,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param line the new line, where execution should be continued to
+        @param line new line, where execution should be continued to
         @type int
         """
         self.__isStepCommand = False
@@ -1011,7 +1011,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param line the new line, where execution should be continued
+        @param line new line, where execution should be continued
         @type int
         """
         self.__sendJsonCommand(
@@ -1032,7 +1032,7 @@
         @type str
         @param fn filename the breakpoint belongs to
         @type str
-        @param line linenumber of the breakpoint
+        @param line line number of the breakpoint
         @type int
         @param setBreakpoint flag indicating setting or resetting a breakpoint
         @type bool
@@ -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",
@@ -1063,12 +1063,12 @@
         @type str
         @param fn filename the breakpoint belongs to
         @type str
-        @param line linenumber of the breakpoint
+        @param line line number of the breakpoint
         @type int
         @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",
@@ -1088,12 +1088,12 @@
         @type str
         @param fn filename the breakpoint belongs to
         @type str
-        @param line linenumber of the breakpoint
+        @param line line number of the breakpoint
         @type int
         @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)
@@ -1187,7 +1187,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param inputString the raw input
+        @param inputString raw input
         @type str
         """
         self.__sendJsonCommand(
@@ -1241,7 +1241,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param scope the scope of the variables (0 = local, 1 = global)
+        @param scope scope of the variables (0 = local, 1 = global)
         @type int
         @param filterList list of variable types to filter out
         @type list of str
@@ -1271,7 +1271,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param scope the scope of the variables (0 = local, 1 = global)
+        @param scope scope of the variables (0 = local, 1 = global)
         @type int
         @param filterList list of variable types to filter out
         @type list of str
@@ -1311,7 +1311,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param scope the scope of the variables (0 = local, 1 = global)
+        @param scope scope of the variables (0 = local, 1 = global)
         @type int
         @param filterStr regexp string for variable names to filter out
         @type str
@@ -1384,7 +1384,7 @@
 
         @param debuggerId ID of the debugger backend
         @type str
-        @param text the text to be completed
+        @param text text to be completed
         @type str
         """
         self.__sendJsonCommand(

eric ide

mercurial