Skip to content

Commit

Permalink
fix: Encode attrs in tree serializer (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra authored Apr 23, 2024
1 parent fcf7f33 commit a2af584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsdata/formats/dataclass/serializers/tree/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def build(self, obj: T, builder: TreeBuilder):
pending_attrs = {}
elif event == XmlWriterEvent.ATTR:
key, value = element
pending_attrs[key] = value
pending_attrs[key] = self.encode_data(value)
elif event == EventType.END:
builder.end(*element)
elif event == XmlWriterEvent.DATA:
Expand Down

0 comments on commit a2af584

Please sign in to comment.