You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/pygments/files/pygments-2.2.0-sphinx17.patch

23 lines
645 B

# 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