          return s
      return force_text(s, encoding, strings_only, errors)
  
  
  _PROTECTED_TYPES = six.integer_types + (
      type(None), float, Decimal, datetime.datetime, datetime.date, datetime.time
  )
  
  
  def is_protected_type(obj):
      """Determine if the object instance is of a protected type.
 
</s> remove                 s = six.text_type(s, encoding, errors)
 </s> add                 s = str(s, encoding, errors) </s> remove                 s = six.text_type(s)
 </s> add                 s = str(s) </s> remove             # Note: We use .decode() here, instead of six.text_type(s, encoding,
 </s> add             # Note: We use .decode() here, instead of str(s, encoding, </s> remove             return six.text_type(s).encode(encoding, errors)
 </s> add             return str(s).encode(encoding, errors) </s> remove         if not issubclass(type(s), six.string_types):
 </s> add         if not issubclass(type(s), str):
_PROTECTED_TYPES = (
    type(None), int, float, Decimal, datetime.datetime, datetime.date, datetime.time,
          return s
      return force_text(s, encoding, strings_only, errors)
  
  
_PROTECTED_TYPES = (
    type(None), int, float, Decimal, datetime.datetime, datetime.date, datetime.time,
_PROTECTED_TYPES = (
    type(None), int, float, Decimal, datetime.datetime, datetime.date, datetime.time,
  )
  
  
  def is_protected_type(obj):
      """Determine if the object instance is of a protected type.
keep keep keep keep replace replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
django/utils/encoding.py