Ticket #19098: regex-url-resolver_repr_unicode.diff
File regex-url-resolver_repr_unicode.diff, 743 bytes (added by , 12 years ago) |
---|
-
urlresolvers.py
old new 8 8 """ 9 9 10 10 import re 11 import sys 11 12 from threading import local 12 13 13 14 from django.http import Http404 … … 232 233 self._app_dict = {} 233 234 234 235 def __repr__(self): 235 return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern)) 236 return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__, 237 str(self.urlconf_name).decode(sys.getfilesystemencoding()), 238 self.app_name, self.namespace, self.regex.pattern)) 236 239 237 240 def _populate(self): 238 241 lookups = MultiValueDict()