      """
      if callable(lookup_view):
          return lookup_view
  
      if not isinstance(lookup_view, six.string_types):
          raise ViewDoesNotExist("'%s' is not a callable or a dot-notation path" % lookup_view)
  
      mod_name, func_name = get_mod_func(lookup_view)
      if not func_name:  # No '.' in lookup_view
          raise ImportError("Could not import '%s'. The path must be fully qualified." % lookup_view)
 
</s> remove         if not isinstance(path, six.string_types):
 </s> add         if not isinstance(path, str): </s> remove         elif isinstance(unique, six.string_types):
 </s> add         elif isinstance(unique, str): </s> remove         if not isinstance(query, six.string_types):
 </s> add         if not isinstance(query, str): </s> remove         if self.flags and not isinstance(self.regex, six.string_types):
 </s> add         if self.flags and not isinstance(self.regex, str): </s> remove         if not isinstance(self.file_path, six.string_types):
 </s> add         if not isinstance(self.file_path, str):
    if not isinstance(lookup_view, str):
      """
      if callable(lookup_view):
          return lookup_view
  
    if not isinstance(lookup_view, str):
          raise ViewDoesNotExist("'%s' is not a callable or a dot-notation path" % lookup_view)
  
      mod_name, func_name = get_mod_func(lookup_view)
      if not func_name:  # No '.' in lookup_view
          raise ImportError("Could not import '%s'. The path must be fully qualified." % lookup_view)
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/urls/utils.py