Merge pull request #764 from moreati/issue763

Fix DjangoMixin test imports for setuptools >= 50.0
pull/779/head
Steven Robertson 3 years ago committed by GitHub
commit f7808a0f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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