From 4ceb9db9d849905720a1c958a5f8629753ef6604 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 21 Jul 2012 22:38:25 +0200 Subject: [PATCH] Removed u prefix on a unicode string. --- django/core/urlresolvers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index 58213a3a73..9745eb65b7 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -167,7 +167,7 @@ class LocaleRegexProvider(object): compiled_regex = re.compile(regex, re.UNICODE) except re.error, e: raise ImproperlyConfigured( - u'"%s" is not a valid regular expression: %s' % + '"%s" is not a valid regular expression: %s' % (regex, unicode(e))) self._regex_dict[language_code] = compiled_regex