mirror of
https://github.com/streamlink/streamlink
synced 2024-11-14 01:04:54 +01:00
Fix sphinx warning on Directive class
Sphinx has deprecated sphinx.util.compat.Directive. Use the class in docutils as recommended by Sphinx. Sphinx warning was: /usr/lib/python3/dist-packages/sphinx/util/compat.py:40: RemovedInSphinx17Warning: sphinx.util.compat.Directive is deprecated and will be removed in Sphinx 1.7, please use docutils' instead. RemovedInSphinx17Warning)
This commit is contained in:
parent
1b74cdaba7
commit
bb85b4e699
@ -17,10 +17,10 @@ from collections import namedtuple
|
||||
from textwrap import dedent
|
||||
|
||||
from docutils import nodes
|
||||
from docutils.parsers.rst import Directive
|
||||
from docutils.parsers.rst.directives import unchanged
|
||||
from docutils.statemachine import ViewList
|
||||
from sphinx.util.nodes import nested_parse_with_titles
|
||||
from sphinx.util.compat import Directive
|
||||
|
||||
|
||||
_ArgumentParser = argparse.ArgumentParser
|
||||
|
Loading…
Reference in New Issue
Block a user