diff options
author | Matth?us G. Chajdas <dev@anteru.net> | 2018-11-24 17:52:06 +0100 |
---|---|---|
committer | Matth?us G. Chajdas <dev@anteru.net> | 2018-11-24 17:52:06 +0100 |
commit | 6bc8c0de737b181566fa66bc29f5fef4bc6ab11c (patch) | |
tree | f86f988041fcc77e6ef7edfbc6828f1491f96265 | |
parent | 72b98953d2dd8db2a909595eea718744ed7ee318 (diff) | |
download | pygments-6bc8c0de737b181566fa66bc29f5fef4bc6ab11c.tar.gz |
Fix documentation not building with latest Sphinx.
-rw-r--r-- | pygments/lexers/xorg.py | 1 | ||||
-rw-r--r-- | pygments/sphinxext.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/xorg.py b/pygments/lexers/xorg.py index e6383b30..3bba930f 100644 --- a/pygments/lexers/xorg.py +++ b/pygments/lexers/xorg.py @@ -16,6 +16,7 @@ __all__ = ['XorgLexer'] class XorgLexer(RegexLexer): + """Lexer for xorg.conf file.""" name = 'Xorg' aliases = ['xorg.conf'] filenames = ['xorg.conf'] diff --git a/pygments/sphinxext.py b/pygments/sphinxext.py index f962f8c6..5c8ac8b9 100644 --- a/pygments/sphinxext.py +++ b/pygments/sphinxext.py @@ -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 |