Removed u prefix on a unicode string.
This commit is contained in:
parent
1af0271d7c
commit
4ceb9db9d8
|
@ -167,7 +167,7 @@ class LocaleRegexProvider(object):
|
||||||
compiled_regex = re.compile(regex, re.UNICODE)
|
compiled_regex = re.compile(regex, re.UNICODE)
|
||||||
except re.error, e:
|
except re.error, e:
|
||||||
raise ImproperlyConfigured(
|
raise ImproperlyConfigured(
|
||||||
u'"%s" is not a valid regular expression: %s' %
|
'"%s" is not a valid regular expression: %s' %
|
||||||
(regex, unicode(e)))
|
(regex, unicode(e)))
|
||||||
|
|
||||||
self._regex_dict[language_code] = compiled_regex
|
self._regex_dict[language_code] = compiled_regex
|
||||||
|
|
Loading…
Reference in New Issue