def __init__(self, text, href, link, mode, maxwords=100): self.maxwords = maxwords self.href = href self.link = link self.mode = mode self.words = 0 HTMLParser.__init__(self, text)
def __init__(self, text, maxwords, href, options): self.href = href self.mode = options['mode'] self.options = options self.words = 0 self.maxwords = maxwords HTMLParser.__init__(self, text)
def __init__(self, html, abbr, repl): self.abbr = abbr self.repl = repl HTMLParser.__init__(self, html)
def __init__(self, html, hyphenationfunc, length=10): self.hyphenate = hyphenationfunc self.length = length HTMLParser.__init__(self, html)