                           Database.LONG_STRING):
              value = to_unicode(value)
          casted.append(value)
      return tuple(casted)
  
  
  def to_unicode(s):
      """
      Convert strings to Unicode objects (and return all other data types
      unchanged).
      """
      if isinstance(s, six.string_types):
          return force_text(s)
      return s
 
</s> remove         elif desc[1] in (Database.STRING, Database.FIXED_CHAR,
                         Database.LONG_STRING):
            value = to_unicode(value)
 </s> add  </s> remove         # Convert params to contain Unicode values.
        def to_unicode(s):
 </s> add         # Convert params to contain string values.
        def to_string(s): </s> remove         return six.text_type(s).encode(encoding, errors)
    if not isinstance(s, six.string_types):
 </s> add         return str(s).encode(encoding, errors)
    if not isinstance(s, str): </s> remove         if not issubclass(type(s), six.string_types):
 </s> add         if not issubclass(type(s), str): </s> remove     if isinstance(s, six.memoryview):
 </s> add     if isinstance(s, memoryview):
                           Database.LONG_STRING):
              value = to_unicode(value)
          casted.append(value)
      return tuple(casted)










keep keep keep keep replace replace replace replace replace replace replace replace replace replace
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
django/db/backends/oracle/base.py