mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 00:23:12 +00:00
Remove encoding and default fd from HtmlPrettyPrinter
Neither are used.
This commit is contained in:
parent
4ffdbf2406
commit
0361d9e0e8
1 changed files with 3 additions and 8 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue