Revert "Update to 1.6.3 (rhbz#1426928)"
This reverts commit 6fe65c3b4d.
This commit is contained in:
parent
6fe65c3b4d
commit
b33e23cded
7 changed files with 77 additions and 36 deletions
21
html-parser-HTMLParserError-removed.patch
Normal file
21
html-parser-HTMLParserError-removed.patch
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
diff --git Sphinx-1.3.1/sphinx/builders/linkcheck.py~ Sphinx-1.3.1/sphinx/builders/linkcheck.py
|
||||
index 9f5c2131c2..71bec0262d 100644
|
||||
--- Sphinx-1.3.1/sphinx/builders/linkcheck.py~
|
||||
+++ Sphinx-1.3.1/sphinx/builders/linkcheck.py
|
||||
@@ -19,9 +19,15 @@ from six.moves import queue
|
||||
from six.moves.urllib.request import build_opener, Request, HTTPRedirectHandler
|
||||
from six.moves.urllib.parse import unquote, urlsplit, quote
|
||||
from six.moves.urllib.error import HTTPError
|
||||
-from six.moves.html_parser import HTMLParser, HTMLParseError
|
||||
+from six.moves.html_parser import HTMLParser
|
||||
from docutils import nodes
|
||||
|
||||
+try:
|
||||
+ from HTMLParser import HTMLParseError
|
||||
+except ImportError:
|
||||
+ class HTMLParseError(Exception):
|
||||
+ pass
|
||||
+
|
||||
from sphinx.builders import Builder
|
||||
from sphinx.util.console import purple, red, darkgreen, darkgray, \
|
||||
darkred, turquoise
|
||||
Loading…
Add table
Add a link
Reference in a new issue