summaryrefslogtreecommitdiff
path: root/django/utils/html_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/html_parser.py')
-rw-r--r--django/utils/html_parser.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/utils/html_parser.py b/django/utils/html_parser.py
index e3e19ee9c3..6b46ddc368 100644
--- a/django/utils/html_parser.py
+++ b/django/utils/html_parser.py
@@ -11,9 +11,7 @@ except AttributeError:
class HTMLParser(html.parser.HTMLParser):
"""Explicitly set convert_charrefs to be False.
- This silences a deprecation warning on Python 3.4, but we can't do
- it at call time because Python 2.7 does not have the keyword
- argument.
+ This silences a deprecation warning on Python 3.4.
"""
def __init__(self, convert_charrefs=False, **kwargs):
html.parser.HTMLParser.__init__(self, convert_charrefs=convert_charrefs, **kwargs)