  from django.utils import six
  
  __all__ = ['A', 'Area', 'D', 'Distance']
  
  NUMERIC_TYPES = six.integer_types + (float, Decimal)
  AREA_PREFIX = "sq_"
  
  
  def pretty_name(obj):
      return obj.__name__ if obj.__class__ == type else obj.__class__.__name__
 
</s> remove NUMERIC_TYPES = six.integer_types + (float, Decimal)
 </s> add NUMERIC_TYPES = (int, float, Decimal) </s> remove from django.utils import six
 </s> add  </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)): </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add 
NUMERIC_TYPES = (int, float, Decimal)
  from django.utils import six
  
  __all__ = ['A', 'Area', 'D', 'Distance']
  
NUMERIC_TYPES = (int, float, Decimal)
  AREA_PREFIX = "sq_"
  
  
  def pretty_name(obj):
      return obj.__name__ if obj.__class__ == type else obj.__class__.__name__
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/measure.py