From 0361d9e0e84eae4aff50fd387a028a8712dd2639 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Wed, 29 Apr 2020 20:07:00 +0100 Subject: [PATCH] Remove encoding and default fd from HtmlPrettyPrinter Neither are used. --- tests/htmllib.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/htmllib.py b/tests/htmllib.py index 08318704..385a98dd 100644 --- a/tests/htmllib.py +++ b/tests/htmllib.py @@ -18,8 +18,6 @@ HTML parser handler test class. """ -import sys - class HtmlPrettyPrinter: """ @@ -27,17 +25,14 @@ class HtmlPrettyPrinter: Also stores error and warnings messages. """ - def __init__ (self, fd=sys.stdout, encoding="iso8859-1"): + def __init__ (self, fd): """ - Write to given file descriptor in given encoding. + Write to given file descriptor. - @param fd: file like object (default=sys.stdout) + @param fd: file like object @type fd: file - @param encoding: encoding (default=iso8859-1) - @type encoding: string """ self.fd = fd - self.encoding = encoding def start_element (self, tag, attrs, element_text, lineno, column): """