summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-21 20:02:00 -0500
committerGitHub <noreply@github.com>2017-01-21 20:02:00 -0500
commitd170c63351944fd91b2206d10f89e7ff75b53b76 (patch)
treee2be66471ab071fa0ce75097d66650b650c53853 /django/utils/html.py
parentc22212220a7900173358a1f16179dcfc9e03de78 (diff)
Refs #23919 -- Removed misc references to Python 2.
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index fb9c18219c..f7f9a63350 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -172,9 +172,7 @@ def strip_tags(value):
while '<' in value and '>' in value:
new_value = _strip_once(value)
if len(new_value) >= len(value):
- # _strip_once was not able to detect more tags or length increased
- # due to http://bugs.python.org/issue20288
- # (affects Python 2 < 2.7.7 and Python 3 < 3.3.5)
+ # _strip_once was not able to detect more tags
break
value = new_value
return value