                  initkwargs.update(method_kwargs)
                  url_path = initkwargs.pop("url_path", None) or methodname
                  ret.append(Route(
                      url=replace_methodname(route.url, url_path),
                      mapping=dict((httpmethod, methodname) for httpmethod in httpmethods),
                      name=replace_methodname(route.name, url_path),
                      initkwargs=initkwargs,
                  ))
  
              return ret
 
</s> remove         ret = dict([
            (key, _force_text_recursive(value))
 </s> add         ret = {
            key: _force_text_recursive(value) </s> remove         ])
 </s> add         } </s> remove         ]))
 </s> add         }) </s> remove         list_kwargs.update(dict([
            (key, value) for key, value in kwargs.items()
 </s> add         list_kwargs.update({
            key: value for key, value in kwargs.items() </s> remove         self.choice_strings_to_values = dict([
            (six.text_type(key), key) for key in self.choices.keys()
        ])
 </s> add         self.choice_strings_to_values = {
            six.text_type(key): key for key in self.choices.keys()
        }
                    mapping={httpmethod: methodname for httpmethod in httpmethods},
                  initkwargs.update(method_kwargs)
                  url_path = initkwargs.pop("url_path", None) or methodname
                  ret.append(Route(
                      url=replace_methodname(route.url, url_path),
                    mapping={httpmethod: methodname for httpmethod in httpmethods},
                      name=replace_methodname(route.name, url_path),
                      initkwargs=initkwargs,
                  ))
  
              return ret
keep keep keep keep replace keep keep keep keep keep
 Replaced all dict and set conversions from lists to dict and set literals. 
rest_framework/routers.py