# HG changeset patch
# User greg
# Date 1237366444 -3600
# Node ID 4328444b039b1f818f7562216c08f4c44fd353ba
# Parent  dcc7f1323ce5572d93c2202cc45d8f8d8a0e56bf
fixed bug in eds_utils.py (forget to convert to upper case)

diff -r dcc7f1323ce5 -r 4328444b039b objdictgen/eds_utils.py
--- a/objdictgen/eds_utils.py	Wed Mar 18 09:10:54 2009 +0100
+++ b/objdictgen/eds_utils.py	Wed Mar 18 09:54:04 2009 +0100
@@ -322,9 +322,9 @@
                     # 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)