summaryrefslogtreecommitdiff
path: root/django/utils/html_parser.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-06-15 09:43:35 -0400
committerTim Graham <timograham@gmail.com>2015-06-18 08:36:50 -0400
commit7f1168e387dc1db70b6093cfd23a4a6978f48109 (patch)
treec3a9f335536fa078d39ad43458feaeac990e3538 /django/utils/html_parser.py
parente5cb4e14118f3a508e3bc00ee7cd50bb0f18a61d (diff)
downloaddjango-7f1168e387dc1db70b6093cfd23a4a6978f48109.tar.gz
Removed support for Python 3.3.
Diffstat (limited to 'django/utils/html_parser.py')
-rw-r--r--django/utils/html_parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/utils/html_parser.py b/django/utils/html_parser.py
index e7f7c11571..a69f914921 100644
--- a/django/utils/html_parser.py
+++ b/django/utils/html_parser.py
@@ -1,6 +1,7 @@
import re
import sys
+from django.utils import six
from django.utils.six.moves import html_parser as _html_parser
current_version = sys.version_info
@@ -15,7 +16,7 @@ except AttributeError:
pass
if not use_workaround:
- if current_version >= (3, 4):
+ if six.PY3:
class HTMLParser(_html_parser.HTMLParser):
"""Explicitly set convert_charrefs to be False.