Skip to content

Commit 596bf13

Browse files
committed
fixup
1 parent 2761288 commit 596bf13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

space_packet_parser/xtce/validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ def _is_http_url(s):
165165
# Otherwise assume a local filepath
166166
else:
167167
with Path(schema_location).open("r") as sfh:
168-
schema_content = sfh.read()
168+
schema_content = sfh.read().encode("utf-8")
169169

170170
# Fix and parse the schema content
171171
try:
172172
try:
173-
schema_root_element = ElementTree.XML(schema_content.encode("utf-8"), parser)
173+
schema_root_element = ElementTree.XML(schema_content, parser)
174174
return ElementTree.XMLSchema(schema_root_element), schema_root_element.get("version", "unknown")
175175
except ElementTree.XMLSchemaError as e:
176176
# Try to fix known issues

0 commit comments

Comments
 (0)