From b7e7387031735b858bbe7ed03f563495021b34fa Mon Sep 17 00:00:00 2001 From: William Toohey Date: Mon, 18 Dec 2017 20:31:21 +1000 Subject: [PATCH] Set encoding variable on plaintext input --- kbinxml/kbinxml.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kbinxml/kbinxml.py b/kbinxml/kbinxml.py index 0abbeb5..60cf4cd 100644 --- a/kbinxml/kbinxml.py +++ b/kbinxml/kbinxml.py @@ -59,6 +59,7 @@ class KBinXML(): def from_text(self, input): self.xml_doc = etree.parse(BytesIO(input)).getroot() + self.encoding = XML_ENCODING @staticmethod def is_binary_xml(input): diff --git a/setup.py b/setup.py index 3a63d4e..1e7bbea 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ if sys.version_info < (3,0): setup( name='kbinxml', - version='1.0', + version='1.1', entry_points = { 'console_scripts': ['kbinxml=kbinxml:main'], },