mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +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:
parent
4d31b5297b
commit
443d5b43ef
@ -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]+$')
|
||||
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):
|
||||
def __init__(self, message):
|
||||
|
Loading…
x
Reference in New Issue
Block a user