summaryrefslogtreecommitdiff
path: root/pygments/sphinxext.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/sphinxext.py')
-rw-r--r--pygments/sphinxext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/sphinxext.py b/pygments/sphinxext.py
index f962f8c6..282693e7 100644
--- a/pygments/sphinxext.py
+++ b/pygments/sphinxext.py
@@ -6,7 +6,7 @@
Sphinx extension to generate automatic documentation of lexers,
formatters and filters.
- :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -16,7 +16,7 @@ import sys
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