Correct a string manipulation error
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Jan 2009 15:22:01 +0000 (15:22 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Jan 2009 15:22:01 +0000 (15:22 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2198 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index c38a88b444b6fa9e80dd2dda5473a9a92b16644e..50758645a78459a7336cecd5622ecf04baf24c0e 100644 (file)
@@ -119,12 +119,13 @@ def getDescriptionInformations(text):
     Take the doxygen comment and strip the wizard informations, returning the tuple 
     (comment, wizard_informations) 
     """ 
-    informations = {} 
     index = text.find("$WIZARD") 
     if index != -1: 
         exec(text[index + 1:]) 
-           informations.update(WIZARD) 
-    return text[:index].strip(), informations
+        informations = WIZARD 
+        return text[:index].strip(), informations
+    else:
+        return text.strip(), {}
 
 def loadModuleInfos(path):
     """