1
mirror of https://github.com/streamlink/streamlink synced 2024-11-12 23:02:38 +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:
Alexis Murzeau 2017-10-07 19:58:34 +02:00
parent 1b74cdaba7
commit bb85b4e699

View File

@ -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