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, html, hyphenationfunc, length=10): self.hyphenate = hyphenationfunc self.length = length HTMLParser.__init__(self, html)