          # reference count is incremented, and will likewise be released
          # (decremented) when this geometry's destructor is called.
          if isinstance(srs, SpatialReference):
              srs_ptr = srs.ptr
          elif isinstance(srs, six.integer_types + six.string_types):
              sr = SpatialReference(srs)
              srs_ptr = sr.ptr
          elif srs is None:
              srs_ptr = None
          else:
 
</s> remove         elif isinstance(value, six.integer_types + six.string_types):
 </s> add         elif isinstance(value, (int, str)): </s> remove         elif isinstance(source_srs, (int, six.string_types)):
 </s> add         elif isinstance(source_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         elif isinstance(coord_trans, six.integer_types + six.string_types):
 </s> add         elif isinstance(coord_trans, (int, str)): </s> remove         elif isinstance(x, six.integer_types + (float,)) and isinstance(y, six.integer_types + (float,)):
 </s> add         elif isinstance(x, (float, int)) and isinstance(y, (float, int)):
        elif isinstance(srs, (int, str)):
          # reference count is incremented, and will likewise be released
          # (decremented) when this geometry's destructor is called.
          if isinstance(srs, SpatialReference):
              srs_ptr = srs.ptr
        elif isinstance(srs, (int, str)):
              sr = SpatialReference(srs)
              srs_ptr = sr.ptr
          elif srs is None:
              srs_ptr = None
          else:
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/gdal/geometries.py