Fix DjangoMixin test imports for setuptools >= 50.0

(cherry picked from commit f162a8a7c5)
pull/800/head
Alex Willmer 4 years ago
parent af987b481b
commit 642bb35973

@ -308,7 +308,6 @@ if sys.version_info > (2, 6):
# AttributeError: module 'html.parser' has no attribute
# 'HTMLParseError'
#
import pkg_resources._vendor.six
from django.utils.six.moves import html_parser as _html_parser
_html_parser.HTMLParseError = Exception

Loading…
Cancel
Save