summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-07 08:09:04 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-14 17:50:04 +0100
commit157ab32f3446da7fa1f9d716509c290069a2a156 (patch)
tree39781a5e2c3e89650ab817e850fdbde1fd4da0cc /django/utils
parent5e33ec80d153416d3693e89138ed21decf042672 (diff)
Refs #27753 -- Removed django.utils.text.unescape_entities() per deprecation timeline.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/text.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/django/utils/text.py b/django/utils/text.py
index 4d77ce7f41..2b1be6c2b1 100644
--- a/django/utils/text.py
+++ b/django/utils/text.py
@@ -1,11 +1,9 @@
import html.entities
import re
import unicodedata
-import warnings
from gzip import GzipFile
from io import BytesIO
-from django.utils.deprecation import RemovedInDjango40Warning
from django.utils.functional import SimpleLazyObject, keep_lazy_text, lazy
from django.utils.regex_helper import _lazy_re_compile
from django.utils.translation import gettext as _, gettext_lazy, pgettext
@@ -360,16 +358,6 @@ _entity_re = _lazy_re_compile(r"&(#?[xX]?(?:[0-9a-fA-F]+|\w{1,8}));")
@keep_lazy_text
-def unescape_entities(text):
- warnings.warn(
- 'django.utils.text.unescape_entities() is deprecated in favor of '
- 'html.unescape().',
- RemovedInDjango40Warning, stacklevel=2,
- )
- return _entity_re.sub(_replace_entity, str(text))
-
-
-@keep_lazy_text
def unescape_string_literal(s):
r"""
Convert quoted string literals to unquoted strings with escaped quotes and