eric6/Debugger/StartDialog.py

changeset 8257
28146736bbfc
parent 8218
7c09585bd960
child 8273
698ae46f40a4
diff -r 26a8b92aeabd -r 28146736bbfc eric6/Debugger/StartDialog.py
--- a/eric6/Debugger/StartDialog.py	Tue Apr 20 19:38:10 2021 +0200
+++ b/eric6/Debugger/StartDialog.py	Tue Apr 20 19:47:39 2021 +0200
@@ -354,13 +354,14 @@
             lists
         @rtype tuple of four list of str
         """
-        if self.dialogType == 0:
-            noDebugHistory = [
+        noDebugHistory = (
+            [
                 self.ui.multiprocessNoDebugCombo.itemText(index)
                 for index in range(self.ui.multiprocessNoDebugCombo.count())
             ]
-        else:
-            noDebugHistory = None
+            if self.dialogType == 0 else
+            None
+        )
         return (
             [self.ui.cmdlineCombo.itemText(index) for index in range(
                 self.ui.cmdlineCombo.count())],

eric ide

mercurial