Fix Python – super() raises “TypeError: must be type, not classobj” for new-style class

The following use of super() raises a TypeError: why?
>>> from HTMLParser import HTMLParser
>>> class TextParser(HTMLParser):
… def __init__(self):
… super(TextParser, self).__init__()
… self.all_data = []

>>> TextParser()
(…)
TypeError: must be type, not classobj

There is a similar question on StackOverf….