          sequence of parameters. These are used by default, but this method
          exists for database backends to provide a better implementation
          according to their own quoting schemes.
          """
          # Convert params to contain Unicode values.
          def to_unicode(s):
              return force_text(s, strings_only=True, errors='replace')
          if isinstance(params, (list, tuple)):
              u_params = tuple(to_unicode(val) for val in params)
          elif params is None:
              u_params = ()
 
</s> remove             u_params = tuple(to_unicode(val) for val in params)
 </s> add             u_params = tuple(to_string(val) for val in params) </s> remove             u_params = {to_unicode(k): to_unicode(v) for k, v in params.items()}
 </s> add             u_params = {to_string(k): to_string(v) for k, v in params.items()} </s> remove                 val = six.text_type(val)
 </s> add                 val = str(val) </s> remove 

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> add  </s> remove         if isinstance(file, six.string_types) or file is None:
 </s> add         if isinstance(file, str) or file is None:
        # Convert params to contain string values.
        def to_string(s):
          sequence of parameters. These are used by default, but this method
          exists for database backends to provide a better implementation
          according to their own quoting schemes.
          """
        # Convert params to contain string values.
        def to_string(s):
        # Convert params to contain string values.
        def to_string(s):
              return force_text(s, strings_only=True, errors='replace')
          if isinstance(params, (list, tuple)):
              u_params = tuple(to_unicode(val) for val in params)
          elif params is None:
              u_params = ()
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/db/backends/base/operations.py