From 136ec0f3830266422f63ee6ab47ab28530c7f405 Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 21 Jan 2009 15:22:01 +0000 Subject: [PATCH] Correct a string manipulation error git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2198 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index c38a88b4..50758645 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -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): """ -- 2.25.1