Correct a string manipulation error
[bertos.git] / 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):
     """