summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-20 12:15:47 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-20 12:16:18 +0900
commita0c2029b3c08e50ea43193e673ec72547f5dd7b1 (patch)
tree6076a7977269faa7703b2e36b092bf5e7ed03fef
parentc3198ed1ff2c84baa9dd08e48b2c8e6205fa939f (diff)
downloadsphinx-git-a0c2029b3c08e50ea43193e673ec72547f5dd7b1.tar.gz
Fix #3295: Could not import extension sphinx.builders.linkcheck
-rw-r--r--CHANGES1
-rw-r--r--sphinx/builders/linkcheck.py7
2 files changed, 4 insertions, 4 deletions
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