mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 22:28:08 -07:00
dev-python/pygments: fix build with USE="doc"
Closes: https://bugs.gentoo.org/662640 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
22
dev-python/pygments/files/pygments-2.2.0-sphinx17.patch
Normal file
22
dev-python/pygments/files/pygments-2.2.0-sphinx17.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
# HG changeset patch
|
||||
# User WAKAYAMA Shirou <shirou.faw@gmail.com>
|
||||
# Date 1500298269 -32400
|
||||
# Node ID 1a78f58afb5066cf35b04676d0d5ffbb18d5d540
|
||||
# Parent 7941677dc77d4f2bf0bbd6140ade85a9454b8b80
|
||||
Change to docutils.parsers in sphinxext.
|
||||
|
||||
From Sphinx 1.7, sphinx.utils.compat will be removed.
|
||||
|
||||
diff --git a/pygments/sphinxext.py b/pygments/sphinxext.py
|
||||
--- a/pygments/sphinxext.py
|
||||
+++ b/pygments/sphinxext.py
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
from docutils import nodes
|
||||
from docutils.statemachine import ViewList
|
||||
-from sphinx.util.compat import Directive
|
||||
+from docutils.parsers.rst import Directive
|
||||
from sphinx.util.nodes import nested_parse_with_titles
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user