Skip to content

Commit fdf5f3c

Browse files
Robert Huemmeroroulet
authored andcommitted
structures: clean names that start with numbers
Reason: to fix issues where the name in the server XML is 2D or 3D; Due to the Symbolic name is not being used
1 parent 9f743f6 commit fdf5f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opcua/common/structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _make_model(self, root):
205205
for child in root.iter("{*}EnumeratedType"):
206206
intenum = EnumType(child.get("Name"))
207207
for xmlfield in child.iter("{*}EnumeratedValue"):
208-
name = xmlfield.get("Name")
208+
name = _clean_name(xmlfield.get("Name"))
209209
value = xmlfield.get("Value")
210210
enumvalue = EnumeratedValue(name, value)
211211
intenum.fields.append(enumvalue)

0 commit comments

Comments
 (0)