1
0
mirror of https://github.com/django/django.git synced 2025-07-03 17:29:12 +00:00

unicode: Fixed a bug in lazy_inter().

git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-05-28 13:08:19 +00:00
parent 4d31b5297b
commit 443d5b43ef

View File

@ -33,7 +33,7 @@ phone_re = re.compile(r'^[A-PR-Y0-9]{3}-[A-PR-Y0-9]{3}-[A-PR-Y0-9]{4}$', re.IGNO
slug_re = re.compile(r'^[-\w]+$') slug_re = re.compile(r'^[-\w]+$')
url_re = re.compile(r'^https?://\S+$') url_re = re.compile(r'^https?://\S+$')
lazy_inter = lazy(lambda a,b: str(a) % b, str) lazy_inter = lazy(lambda a,b: force_unicode(a) % b, unicode)
class ValidationError(Exception): class ValidationError(Exception):
def __init__(self, message): def __init__(self, message):