  from django.contrib.gis.gdal.prototypes import (
      ds as capi, geom as geom_api, srs as srs_api,
  )
  from django.contrib.gis.gdal.srs import SpatialReference
  from django.utils import six
  from django.utils.encoding import force_bytes, force_text
  from django.utils.six.moves import range
  
  
  # For more information, see the OGR C API source code:
 
</s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add 
  from django.contrib.gis.gdal.prototypes import (
      ds as capi, geom as geom_api, srs as srs_api,
  )
  from django.contrib.gis.gdal.srs import SpatialReference

  from django.utils.encoding import force_bytes, force_text
  from django.utils.six.moves import range
  
  
  # For more information, see the OGR C API source code:
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/layer.py