Ticket #15795: urlresolvers-r16022.diff
File urlresolvers-r16022.diff, 898 bytes (added by , 14 years ago) |
---|
-
urlresolvers.py
131 131 self.name = name 132 132 133 133 def __repr__(self): 134 return '<%s %s %s>' % (self.__class__.__name__, self.name, self.regex.pattern)134 return smart_str(u'<%s %s %s>' % (self.__class__.__name__, self.name, self.regex.pattern)) 135 135 136 136 def add_prefix(self, prefix): 137 137 """ … … 188 188 self._app_dict = None 189 189 190 190 def __repr__(self): 191 return '<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern)191 return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern)) 192 192 193 193 def _populate(self): 194 194 lookups = MultiValueDict()