diff options
Diffstat (limited to 'django/utils/text.py')
-rw-r--r-- | django/utils/text.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/text.py b/django/utils/text.py index 4f8ef9b31b..b0f139e034 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -385,6 +385,7 @@ def _replace_entity(match): except (ValueError, KeyError): return match.group(0) + _entity_re = re.compile(r"&(#?[xX]?(?:[0-9a-fA-F]+|\w{1,8}));") @@ -445,4 +446,6 @@ def _format_lazy(format_string, *args, **kwargs): and/or kwargs might be lazy. """ return format_string.format(*args, **kwargs) + + format_lazy = lazy(_format_lazy, six.text_type) |