eric6/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8259
2bbec88047dd
--- a/eric6/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py	Fri Apr 02 11:59:41 2021 +0200
+++ b/eric6/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py	Sat May 01 14:27:20 2021 +0200
@@ -30,7 +30,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super(E5MessageBoxWizardDialog, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)
         
         # keep the following three lists in sync
@@ -428,11 +428,11 @@
         
         istring2 = istring + indString
         joinstring = ' |{0}{1}'.format(os.linesep, istring2)
-        if withIntro:
-            btnCode = ',{0}{1}E5MessageBox.StandardButtons('.format(
-                os.linesep, istring)
-        else:
-            btnCode = 'E5MessageBox.StandardButtons('
+        btnCode = (
+            ',{0}{1}E5MessageBox.StandardButtons('.format(os.linesep, istring)
+            if withIntro else
+            'E5MessageBox.StandardButtons('
+        )
         btnCode += '{0}{1}{2})'.format(
             os.linesep, istring2, joinstring.join(buttons))
         

eric ide

mercurial