eric6/Debugger/DebugUI.py

changeset 8257
28146736bbfc
parent 8243
cc717c2ae956
child 8265
0090cfa83159
--- a/eric6/Debugger/DebugUI.py	Tue Apr 20 19:38:10 2021 +0200
+++ b/eric6/Debugger/DebugUI.py	Tue Apr 20 19:47:39 2021 +0200
@@ -1687,10 +1687,11 @@
         
         # Get the command line arguments, the working directory and the
         # exception reporting flag.
-        if runProject:
-            cap = self.tr("Coverage of Project")
-        else:
-            cap = self.tr("Coverage of Script")
+        cap = (
+            self.tr("Coverage of Project")
+            if runProject else
+            self.tr("Coverage of Script")
+        )
         dlg = StartDialog(
             cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
             self.envHistory, self.exceptions, self.ui, 2,
@@ -1831,10 +1832,11 @@
         
         # Get the command line arguments, the working directory and the
         # exception reporting flag.
-        if runProject:
-            cap = self.tr("Profile of Project")
-        else:
-            cap = self.tr("Profile of Script")
+        cap = (
+            self.tr("Profile of Project")
+            if runProject else
+            self.tr("Profile of Script")
+        )
         dlg = StartDialog(
             cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
             self.envHistory, self.exceptions, self.ui, 3,
@@ -1975,8 +1977,11 @@
         
         # Get the command line arguments, the working directory and the
         # exception reporting flag.
-        cap = (self.tr("Run Project") if runProject
-               else self.tr("Run Script"))
+        cap = (
+            self.tr("Run Project")
+            if runProject else
+            self.tr("Run Script")
+        )
         dlg = StartDialog(
             cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
             self.envHistory, self.exceptions, self.ui, 1,
@@ -2113,8 +2118,11 @@
         
         # Get the command line arguments, the working directory and the
         # exception reporting flag.
-        cap = (self.tr("Debug Project") if debugProject
-               else self.tr("Debug Script"))
+        cap = (
+            self.tr("Debug Project")
+            if debugProject else
+            self.tr("Debug Script")
+        )
         dlg = StartDialog(
             cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
             self.envHistory, self.exceptions, self.ui, 0,

eric ide

mercurial