eric7/Plugins/WizardPlugins/SetupWizard/SetupWizardDialog.py

branch
eric7
changeset 9205
b75da2ba2a1a
parent 9202
81388c6065e8
--- a/eric7/Plugins/WizardPlugins/SetupWizard/SetupWizardDialog.py	Mon Jul 04 17:21:56 2022 +0200
+++ b/eric7/Plugins/WizardPlugins/SetupWizard/SetupWizardDialog.py	Mon Jul 04 19:44:38 2022 +0200
@@ -41,6 +41,7 @@
     It displays a dialog for entering the parameters for the setup.py code
     generator.
     """
+    
     def __init__(self, category, editor, parent=None):
         """
         Constructor
@@ -642,9 +643,9 @@
         
         classifiers = []
         if not self.licenseClassifierCheckBox.isChecked():
-            license = tomlkit.table()
-            license["text"] =  self.licenseEdit.text()
-            project["license"] = license
+            licenseTbl = tomlkit.table()
+            licenseTbl["text"] = self.licenseEdit.text()
+            project["license"] = licenseTbl
         else:
             classifiers.append(
                 self.licenseClassifierComboBox.itemData(
@@ -767,10 +768,11 @@
         """
         line, index = self.__editor.getCursorPosition()
         indLevel = self.__editor.indentation(line) // self.__editor.indentationWidth()
-        if self.__editor.indentationsUseTabs():
-            indString = '\t'
-        else:
-            indString = self.__editor.indentationWidth() * ' '
+        indString = (
+            '\t'
+            if self.__editor.indentationsUseTabs() else
+            self.__editor.indentationWidth() * ' '
+        )
         
         if self.__category == "setup.py":
             sourceCode = self.__getSetupPyCode(indLevel, indString)

eric ide

mercurial