eric7/Plugins/WizardPlugins/SetupWizard/SetupCfgUtilities.py

branch
eric7
changeset 9205
b75da2ba2a1a
parent 9201
2f1ccadee231
--- a/eric7/Plugins/WizardPlugins/SetupWizard/SetupCfgUtilities.py	Mon Jul 04 17:21:56 2022 +0200
+++ b/eric7/Plugins/WizardPlugins/SetupWizard/SetupCfgUtilities.py	Mon Jul 04 19:44:38 2022 +0200
@@ -17,6 +17,7 @@
 # dict - list-comma where keys are separated from values by =
 #
 
+
 def _bool2string(value):
     """
     Function to convert a bool value to a setup.cfg string.
@@ -40,6 +41,8 @@
     """
     if value:
         return "\n{0}".format("\n".join(sorted(filter(None, value))))
+    
+    return ""
 
 
 def _dict2list(value):
@@ -66,9 +69,10 @@
     """
     return _list2string(list(_dict2list(value)))
 
+
 def toString(value):
     """
-    Function to convert a value to a setup.cfg string
+    Function to convert a value to a setup.cfg string.
     
     @param value value to be converted
     @type bool, list, set, tuple or dict

eric ide

mercurial