          (SRID) number for this Geometry.  If not set, the SRID will be None.
          """
          if isinstance(geo_input, bytes):
              geo_input = force_text(geo_input)
          if isinstance(geo_input, six.string_types):
              wkt_m = wkt_regex.match(geo_input)
              if wkt_m:
                  # Handling WKT input.
                  if wkt_m.group('srid'):
                      srid = int(wkt_m.group('srid'))
 
</s> remove                 raise ValueError('String or unicode input unrecognized as WKT EWKT, and HEXEWKB.')
 </s> add                 raise ValueError('String input unrecognized as WKT EWKT, and HEXEWKB.') </s> remove         elif isinstance(srs_input, six.string_types):
 </s> add         elif isinstance(srs_input, 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(content, six.binary_type):
 </s> add                 if isinstance(content, bytes): </s> remove         if self.flags and not isinstance(self.regex, six.string_types):
 </s> add         if self.flags and not isinstance(self.regex, str):
        if isinstance(geo_input, str):
          (SRID) number for this Geometry.  If not set, the SRID will be None.
          """
          if isinstance(geo_input, bytes):
              geo_input = force_text(geo_input)
        if isinstance(geo_input, str):
              wkt_m = wkt_regex.match(geo_input)
              if wkt_m:
                  # Handling WKT input.
                  if wkt_m.group('srid'):
                      srid = int(wkt_m.group('srid'))
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/contrib/gis/geos/geometry.py