Removed u prefix on a unicode string.

This commit is contained in:
Aymeric Augustin 2012-07-21 22:38:25 +02:00
parent 1af0271d7c
commit 4ceb9db9d8
1 changed files with 1 additions and 1 deletions

View File

@ -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