diff options
author | Tim Graham <timograham@gmail.com> | 2015-06-15 09:43:35 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-06-18 08:36:50 -0400 |
commit | 7f1168e387dc1db70b6093cfd23a4a6978f48109 (patch) | |
tree | c3a9f335536fa078d39ad43458feaeac990e3538 /django/utils/html_parser.py | |
parent | e5cb4e14118f3a508e3bc00ee7cd50bb0f18a61d (diff) | |
download | django-7f1168e387dc1db70b6093cfd23a4a6978f48109.tar.gz |
Removed support for Python 3.3.
Diffstat (limited to 'django/utils/html_parser.py')
-rw-r--r-- | django/utils/html_parser.py | 3 |
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. |