              return children
  
          rstrip_last_element(self.children)
          for i, child in enumerate(self.children):
              if isinstance(child, six.string_types):
                  self.children[i] = child.strip()
              elif hasattr(child, 'finalize'):
                  child.finalize()
  
      def __eq__(self, element):
 
</s> remove             if isinstance(child, six.string_types):
                if isinstance(element, six.string_types):
 </s> add             if isinstance(child, str):
                if isinstance(element, str): </s> remove                 if isinstance(children[-1], six.string_types):
 </s> add                 if isinstance(children[-1], str): </s> remove                 if isinstance(self.children[-1], six.string_types):
 </s> add                 if isinstance(self.children[-1], str): </s> remove         if isinstance(element, six.string_types):
            element = force_text(element)
 </s> add         if isinstance(element, str): </s> remove             u_params = tuple(to_unicode(val) for val in params)
 </s> add             u_params = tuple(to_string(val) for val in params)
            if isinstance(child, str):
              return children
  
          rstrip_last_element(self.children)
          for i, child in enumerate(self.children):
            if isinstance(child, str):
                  self.children[i] = child.strip()
              elif hasattr(child, 'finalize'):
                  child.finalize()
  
      def __eq__(self, element):
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