[Tutor] problems with HTMLParser

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Mon, 22 Jan 2001 18:23:05 -0800 (PST)


> > I call this simply:
> >
> > foo = myHTML(NullFormatter)
                 ^^^^^^^^^^^^^

It's this part --- you need to pass in an instance of a NullFormatter when
doing stuff with HTMLParser:

    foo = myHTML(NullFormatter())

Don't worry, I've seen this bug a LOT.