          elif self.children:
              # removing last children if it is only whitespace
              # this can result in incorrect dom representations since
              # whitespace between inline tags like <span> is significant
              if isinstance(self.children[-1], six.string_types):
                  if self.children[-1].isspace():
                      self.children.pop()
          if element:
              self.children.append(element)
  
 
</s> remove                 if isinstance(self.children[-1], six.string_types):
 </s> add                 if isinstance(self.children[-1], str): </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         elif isinstance(srs, six.integer_types + six.string_types):
 </s> add         elif isinstance(srs, (int, str)): </s> remove         elif f.geom_type == 'RASTER' and isinstance(value, six.string_types):
 </s> add         elif f.geom_type == 'RASTER' and isinstance(value, str): </s> remove         if isinstance(element, six.string_types):
            element = force_text(element)
 </s> add         if isinstance(element, str):
            if isinstance(self.children[-1], str):
          elif self.children:
              # removing last children if it is only whitespace
              # this can result in incorrect dom representations since
              # whitespace between inline tags like <span> is significant
            if isinstance(self.children[-1], str):
                  if self.children[-1].isspace():
                      self.children.pop()
          if element:
              self.children.append(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