Merge "doc: Remove deprecated call to sphinx.util.compat"

This commit is contained in:
Jenkins 2017-09-19 18:44:50 +00:00 committed by Gerrit Code Review
commit 73a86c4ea7
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ import os
import re import re
from docutils import nodes from docutils import nodes
from docutils.parsers import rst
from docutils.parsers.rst.directives.tables import Table from docutils.parsers.rst.directives.tables import Table
from docutils.statemachine import ViewList from docutils.statemachine import ViewList
import pbr.version import pbr.version
from sphinx.util.compat import Directive
from sphinx.util.osutil import copyfile from sphinx.util.osutil import copyfile
import yaml import yaml
@ -123,7 +123,7 @@ class rest_expand_all(nodes.Part, nodes.Element):
pass pass
class RestExpandAllDirective(Directive): class RestExpandAllDirective(rst.Directive):
# This tells sphinx that the directive will need to generate # This tells sphinx that the directive will need to generate
# content during the final build phase. # content during the final build phase.
has_content = True has_content = True
@ -149,7 +149,7 @@ class RestExpandAllDirective(Directive):
return [node] return [node]
class RestMethodDirective(Directive): class RestMethodDirective(rst.Directive):
# this enables content in the directive # this enables content in the directive
has_content = True has_content = True