From: duplo Date: Wed, 21 Jan 2009 15:22:01 +0000 (+0000) Subject: Correct a string manipulation error X-Git-Tag: 2.1.0~484 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=136ec0f3830266422f63ee6ab47ab28530c7f405;p=bertos.git Correct a string manipulation error git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2198 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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): """