]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
fixed bug in eds_utils.py (forget to convert to upper case)
authorgreg <greg>
Wed, 18 Mar 2009 08:54:04 +0000 (08:54 +0000)
committergreg <greg>
Wed, 18 Mar 2009 08:54:04 +0000 (08:54 +0000)
objdictgen/eds_utils.py

index f966c70940720925b5965165f09e4164076e56b8..c96ac64779a9ef9a889a9c87c707e32f10556190 100644 (file)
@@ -322,9 +322,9 @@ def ParseEDSFile(filepath):
                     # value can be preceded and followed by whitespaces, so we escape them
                     value = value.strip()
                     # First case, value starts with "$NODEID", then it's a formula
-                    if value.startswith("$NODEID"):
+                    if value.upper().startswith("$NODEID"):
                         try:
-                            test = int(value.replace("$NODEID+", ""), 16)
+                            test = int(value.upper().replace("$NODEID+", ""), 16)
                             computed_value = "\"%s\""%value
                         except:
                             raise SyntaxError, "\"%s\" is not a valid formula for attribute \"%s\" of section \"[%s]\""%(value, keyname, section_name)