From 5adb36d5b2b2d70fc7945fd64d31958bbddd6efd Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Mon, 5 Apr 2021 00:50:08 +0000 Subject: [PATCH] Fix a few comments in old XML parser. --- bemani/protocol/xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bemani/protocol/xml.py b/bemani/protocol/xml.py index 7edba71..0e04c69 100644 --- a/bemani/protocol/xml.py +++ b/bemani/protocol/xml.py @@ -338,7 +338,7 @@ class XmlEncoder: Parameters: tree - A binary blob of data to be decoded encoding - A string representing the text encoding for string elements. Should be either - 'shift-jis', 'euc-jp' or 'utf-8' + 'shift-jis', 'euc-jp', 'utf-8' or 'ascii'. """ self.tree = tree self.encoding = encoding @@ -539,7 +539,7 @@ class XmlEncoding: encoding = self.__fix_encoding(encoding) if encoding not in XmlEncoding.ACCEPTED_ENCODINGS: - # XML pages only support shift-jis + # XML pages only support a few encodings. raise XmlEncodingException(f"Invalid text encoding {encoding}") xml = XmlEncoder(tree, encoding)