diff options
author | Ramin Farajpour Cami <ramin.blackhat@gmail.com> | 2016-11-12 20:41:23 +0330 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-14 12:30:46 -0500 |
commit | 967be82443b5640d61608a89897d8ce2bc44fa54 (patch) | |
tree | 9905e1156e27aa3d1226da3dde1223a5087b0d55 /django/utils/text.py | |
parent | 6072de727f0ffa7bf0aa67aadba5d4589561974d (diff) | |
download | django-967be82443b5640d61608a89897d8ce2bc44fa54.tar.gz |
Fixed E305 flake8 warnings.
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) |