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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/utils/html_parser.py b/django/utils/html_parser.py
index d272004f77..e3e19ee9c3 100644
--- a/django/utils/html_parser.py
+++ b/django/utils/html_parser.py
@@ -1,14 +1,14 @@
-from django.utils.six.moves import html_parser as _html_parser
+import html.parser
try:
- HTMLParseError = _html_parser.HTMLParseError
+ HTMLParseError = html.parser.HTMLParseError
except AttributeError:
# create a dummy class for Python 3.5+ where it's been removed
class HTMLParseError(Exception):
pass
-class HTMLParser(_html_parser.HTMLParser):
+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
@@ -16,4 +16,4 @@ class HTMLParser(_html_parser.HTMLParser):
argument.
"""
def __init__(self, convert_charrefs=False, **kwargs):
- _html_parser.HTMLParser.__init__(self, convert_charrefs=convert_charrefs, **kwargs)
+ html.parser.HTMLParser.__init__(self, convert_charrefs=convert_charrefs, **kwargs)