Skip to content

Commit cb1bd83

Browse files
authored
Add missing XML deserializers to filter list (#15)
In MicroPython we have no support for XML deserialization. The patching script therefore drops all deserialization functions when converting from python SDK. In the current version the patching script misses some deserialization functions, resulting in MicroPython containing them. We add these missing function to the filter list.
1 parent 2671720 commit cb1bd83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dev_scripts/patch_aas_core_python.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,13 +1212,19 @@ def _remove_xml_deserialization(
12121212
"_read_float_from_element_text",
12131213
"_read_str_from_element_text",
12141214
"_read_bytes_from_element_text",
1215+
"from_iterparse",
1216+
"from_file",
1217+
"from_stream",
1218+
"from_str",
1219+
"_read_as_element",
12151220
}
12161221

12171222
variable_set_to_ignore = {
12181223
"_XS_BOOLEAN_LITERAL_SET",
12191224
"_NAMESPACE_IN_CURLY_BRACKETS",
12201225
"Segment",
12211226
"_TEXT_TO_XS_DOUBLE_LITERALS",
1227+
"_GENERAL_DISPATCH",
12221228
}
12231229

12241230
for stmt in atok.tree.body:

0 commit comments

Comments
 (0)