> > 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.