          i = 0
          for child in self.children:
              # child is text content and element is also text content, then
              # make a simple "text" in "text"
              if isinstance(child, six.string_types):
                  if isinstance(element, six.string_types):
                      if count:
                          i += child.count(element)
                      elif element in child:
                          return 1
              else:
 
</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             if isinstance(child, six.string_types):
 </s> add             if isinstance(child, str): </s> remove         elif isinstance(srs_input, six.string_types):
 </s> add         elif isinstance(srs_input, str): </s> remove         if isinstance(index, six.string_types):
 </s> add         if isinstance(index, str):
            if isinstance(child, str):
                if isinstance(element, str):
          i = 0
          for child in self.children:
              # child is text content and element is also text content, then
              # make a simple "text" in "text"
            if isinstance(child, str):
                if isinstance(element, str):
            if isinstance(child, str):
                if isinstance(element, str):
                      if count:
                          i += child.count(element)
                      elif element in child:
                          return 1
              else:
keep keep keep keep replace 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