From 39edb23cd7b0dd9cdf4601449a92098c2b0e327f Mon Sep 17 00:00:00 2001 From: zrgt Date: Mon, 19 Aug 2024 17:43:48 +0200 Subject: [PATCH] Small refactoring --- basyx/aas/adapter/xml/xml_deserialization.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basyx/aas/adapter/xml/xml_deserialization.py b/basyx/aas/adapter/xml/xml_deserialization.py index 26b6641a..21cf3f5c 100644 --- a/basyx/aas/adapter/xml/xml_deserialization.py +++ b/basyx/aas/adapter/xml/xml_deserialization.py @@ -504,7 +504,8 @@ def amend_has_data_specification_attrs(cls, element: etree.Element, obj: model.H def _amend_extension_attrs(cls, element: etree.Element, obj: model.HasExtension): extension_elem = element.find(NS_AAS + "extensions") if extension_elem is not None: - for extension in _child_construct_multiple(extension_elem, NS_AAS + "extension", cls.construct_extension, cls.failsafe): + for extension in _child_construct_multiple(extension_elem, NS_AAS + "extension", + cls.construct_extension, cls.failsafe): obj.extension.add(extension) @classmethod