mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
fix(nc): fix ordering of types parsed from xml
Running the generator under windows and linux produced a different types_generated.h (with a different ordering of the types). Using and OrderedDict for snippets preserves the ordering and gives a more consistent result.
This commit is contained in:
parent
0881e25994
commit
0b3fde00c3
@ -302,7 +302,7 @@ class TypeParser():
|
||||
return True
|
||||
return False
|
||||
|
||||
snippets = {}
|
||||
snippets = OrderedDict()
|
||||
xmlDoc = etree.iterparse(
|
||||
xmlDescription, events=['start-ns']
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user