From 92ec664f5783c45f9b170e722a9bf3ae9a50ac38 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 26 Oct 2018 01:24:02 +0200 Subject: [PATCH] Fix missing UTF-8 header --- drafthorse/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drafthorse/utils.py b/drafthorse/utils.py index 9bf8aa3..299e14d 100644 --- a/drafthorse/utils.py +++ b/drafthorse/utils.py @@ -36,4 +36,4 @@ def validate_xml(xmlout, schema): schema = etree.XMLSchema(file=os.path.join(os.path.dirname(__file__), 'schema', schema + '.xsd')) parser = etree.XMLParser(schema=schema) xml_root = etree.fromstring(xmlout, parser) - return etree.tostring(xml_root, pretty_print=True) + return b"" + etree.tostring(xml_root, pretty_print=True) -- 2.47.3