diff --git a/CHANGES b/CHANGES index c6a1df46a..da787c7f7 100644 --- a/CHANGES +++ b/CHANGES @@ -50,6 +50,7 @@ Bugs fixed * LaTeX rendering of inserted footnotes in parsed-literal is wrong (ref #3340) * Inline math in parsed-literal is not rendered well by LaTeX (ref #3340) * #3308: Parsed-literals don't wrap very long lines with pdf builder (ref #3340) +* #3295: Could not import extension sphinx.builders.linkcheck Release 1.5.1 (released Dec 13, 2016) diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index 3ca00a3a2..563f658b6 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -16,9 +16,8 @@ import threading from os import path from requests.exceptions import HTTPError -from six.moves import queue +from six.moves import queue, html_parser from six.moves.urllib.parse import unquote -from six.moves.html_parser import HTMLParser from docutils import nodes # 2015-06-25 barry@python.org. This exception was deprecated in Python 3.3 and @@ -38,11 +37,11 @@ from sphinx.util.console import purple, red, darkgreen, darkgray, \ from sphinx.util.requests import is_ssl_error -class AnchorCheckParser(HTMLParser): +class AnchorCheckParser(html_parser.HTMLParser): """Specialized HTML parser that looks for a specific anchor.""" def __init__(self, search_anchor): - HTMLParser.__init__(self) + html_parser.HTMLParser.__init__(self) self.search_anchor = search_anchor self.found = False