From: Raphael Michel Date: Thu, 25 Oct 2018 23:24:02 +0000 (+0200) Subject: Fix missing UTF-8 header X-Git-Tag: 1.0.0~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92ec664f5783c45f9b170e722a9bf3ae9a50ac38;p=thirdparty%2Fpython-drafthorse.git Fix missing UTF-8 header --- 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)