Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <paul.horton@owasp.org>
  • Loading branch information
madpah committed Jan 27, 2023
1 parent 435126c commit 8ca9e44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serializable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,9 @@ def _from_xml(cls: Type[_T], data: Union[TextIOWrapper, ElementTree.Element],
elif not prop_info.is_primitive_type():
global_klass_name = f'{prop_info.concrete_type.__module__}.{prop_info.concrete_type.__name__}'
if global_klass_name in ObjectMetadataLibrary.klass_mappings:
_data[decoded_k] = prop_info.concrete_type.from_xml(data=child_e, default_namespace=default_namespace)
_data[decoded_k] = prop_info.concrete_type.from_xml(
data=child_e, default_namespace=default_namespace
)
else:
_data[decoded_k] = prop_info.concrete_type(child_e.text)
else:
Expand Down

0 comments on commit 8ca9e44

Please sign in to comment.