      def __init__(self):
          super(RootElement, self).__init__(None, ())
  
      def __str__(self):
          return ''.join(six.text_type(c) for c in self.children)
  
  
  class Parser(HTMLParser):
      SELF_CLOSING_TAGS = (
          'br', 'hr', 'input', 'img', 'meta', 'spacer', 'link', 'frame', 'base',
 
</s> remove         return six.text_type(self)
 </s> add         return str(self) </s> remove             output += ''.join(six.text_type(c) for c in self.children)
 </s> add             output += ''.join(str(c) for c in self.children) </s> remove             [(c.id, six.text_type(c.start), six.text_type(c.end)) for c in connections],
 </s> add             [(c.id, str(c.start), str(c.end)) for c in connections], </s> remove         return six.text_type(self.biggie)
 </s> add         return str(self.biggie) </s> remove         return six.text_type(self.text)
 </s> add         return self.text
        return ''.join(str(c) for c in self.children)
      def __init__(self):
          super(RootElement, self).__init__(None, ())
  
      def __str__(self):
        return ''.join(str(c) for c in self.children)
  
  
  class Parser(HTMLParser):
      SELF_CLOSING_TAGS = (
          'br', 'hr', 'input', 'img', 'meta', 'spacer', 'link', 'frame', 'base',
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
django/test/html.py