Fix #3295: Could not import extension sphinx.builders.linkcheck

This commit is contained in:
Takeshi KOMIYA 2017-01-20 12:15:47 +09:00
parent c3198ed1ff
commit a0c2029b3c
2 changed files with 4 additions and 4 deletions

View File

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

View File

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