      ret = []
      for urlpattern in urlpatterns:
          if isinstance(urlpattern, URLResolver):
              # Set of included URL patterns
              regex = get_regex_pattern(urlpattern)
              namespace = urlpattern.namespace
              app_name = urlpattern.app_name
              kwargs = urlpattern.default_kwargs
              # Add in the included patterns, after applying the suffixes
              patterns = apply_suffix_patterns(urlpattern.url_patterns,
 
</s> remove             regex = get_regex_pattern(urlpattern).rstrip('$').rstrip('/') + suffix_pattern
 </s> add             regex = urlpattern.pattern.regex.pattern.rstrip('$').rstrip('/') + suffix_pattern </s> remove         pairs = [(inspector.get_path_from_regex(get_regex_pattern(pattern)), pattern.callback)
 </s> add         pairs = [(inspector.get_path_from_regex(pattern.pattern.regex.pattern), pattern.callback) </s> remove             path_regex = prefix + get_original_route(pattern)
 </s> add             path_regex = prefix + str(pattern.pattern) </s> remove             if is_route_pattern(urlpattern):
 </s> add             if isinstance(urlpattern.pattern, RoutePattern): </s> remove             if is_route_pattern(urlpattern):
 </s> add             if isinstance(urlpattern.pattern, RoutePattern):
            regex = urlpattern.pattern.regex.pattern
      ret = []
      for urlpattern in urlpatterns:
          if isinstance(urlpattern, URLResolver):
              # Set of included URL patterns
            regex = urlpattern.pattern.regex.pattern
              namespace = urlpattern.namespace
              app_name = urlpattern.app_name
              kwargs = urlpattern.default_kwargs
              # Add in the included patterns, after applying the suffixes
              patterns = apply_suffix_patterns(urlpattern.url_patterns,
keep keep keep keep replace keep keep keep keep keep
 Drop all compat support to Django < 2 urls (#7337) 
rest_framework/urlpatterns.py