@@ -1,35 +0,0 @@
1−From 7ce3b991229c74262f81ab7692a1dc6bde2416ee Mon Sep 17 00:00:00 2001
2−From: Barry Warsaw <barry@python.org>
3−Date: Thu, 25 Jun 2015 11:54:05 -0400
4−Subject: [PATCH] One way to work around the lack of
5− html.parser.HTMLParserError in Python 3.5
6−
7−---
8− sphinx/builders/linkcheck.py | 12 +++++++++++-
9− 1 file changed, 11 insertions(+), 1 deletion(-)
10−
11−diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py
12−index 9f5c213..b05c5b2 100644
13−--- a/sphinx/builders/linkcheck.py
14−+++ b/sphinx/builders/linkcheck.py
15−@@ -19,9 +19,19 @@
16− from six.moves.urllib.request import build_opener, Request, HTTPRedirectHandler
17− from six.moves.urllib.parse import unquote, urlsplit, quote
18− from six.moves.urllib.error import HTTPError
19−-from six.moves.html_parser import HTMLParser, HTMLParseError
20−+from six.moves.html_parser import HTMLParser
21− from docutils import nodes
22−
23−+# 2015-06-25 barry@python.org. This exception was deprecated in Python 3.3 and
24−+# removed in Python 3.5, however for backward compatibility reasons, we're not
25−+# going to just remove it. If it doesn't exist, define an exception that will
26−+# never be caught but leaves the code in check_anchor() intact.
27−+try:
28−+ from six.moves.html_parser import HTMLParseError
29−+except ImportError:
30−+ class HTMLParseError(Exception):
31−+ pass
32−+
33− from sphinx.builders import Builder
34− from sphinx.util.console import purple, red, darkgreen, darkgray, \
35− darkred, turquoise