          try:
              return re.compile(regex, re.UNICODE)
          except re.error as e:
              raise ImproperlyConfigured(
                  '"%s" is not a valid regular expression: %s' %
                  (regex, six.text_type(e))
              )
  
  
  class LocaleRegexProvider(object):
      """
 
</s> remove         if isinstance(expected_data, six.string_types):
 </s> add         if isinstance(expected_data, str): </s> remove         if isinstance(expected_data, six.string_types):
 </s> add         if isinstance(expected_data, str): </s> remove         if not isinstance(self.file_path, six.string_types):
 </s> add         if not isinstance(self.file_path, str): </s> remove         if isinstance(self.permission_required, six.string_types):
 </s> add         if isinstance(self.permission_required, str): </s> remove         if isinstance(ds_input, six.string_types):
 </s> add         if isinstance(ds_input, str):
                '"%s" is not a valid regular expression: %s' % (regex, e)
          try:
              return re.compile(regex, re.UNICODE)
          except re.error as e:
              raise ImproperlyConfigured(
                '"%s" is not a valid regular expression: %s' % (regex, e)
                '"%s" is not a valid regular expression: %s' % (regex, e)
              )
  
  
  class LocaleRegexProvider(object):
      """
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/urls/resolvers.py