Revision b6d02fa9 lib/build/sphinx_ext.py
b/lib/build/sphinx_ext.py | ||
---|---|---|
32 | 32 |
import sphinx.errors |
33 | 33 |
import sphinx.util.compat |
34 | 34 |
|
35 |
s_compat = sphinx.util.compat |
|
36 |
|
|
35 | 37 |
from ganeti import constants |
36 | 38 |
from ganeti import compat |
37 | 39 |
from ganeti import errors |
... | ... | |
147 | 149 |
return "``%s``" % result_fn |
148 | 150 |
|
149 | 151 |
|
150 |
class OpcodeParams(sphinx.util.compat.Directive):
|
|
152 |
class OpcodeParams(s_compat.Directive):
|
|
151 | 153 |
"""Custom directive for opcode parameters. |
152 | 154 |
|
153 | 155 |
See also <http://docutils.sourceforge.net/docs/howto/rst-directives.html>. |
... | ... | |
178 | 180 |
return [] |
179 | 181 |
|
180 | 182 |
|
181 |
class OpcodeResult(sphinx.util.compat.Directive):
|
|
183 |
class OpcodeResult(s_compat.Directive):
|
|
182 | 184 |
"""Custom directive for opcode result. |
183 | 185 |
|
184 | 186 |
See also <http://docutils.sourceforge.net/docs/howto/rst-directives.html>. |
... | ... | |
230 | 232 |
return ([node], []) |
231 | 233 |
|
232 | 234 |
|
233 |
class PythonAssert(sphinx.util.compat.Directive):
|
|
235 |
class PythonAssert(s_compat.Directive):
|
|
234 | 236 |
"""Custom directive for writing assertions. |
235 | 237 |
|
236 | 238 |
The content must be a valid Python expression. If its result does not |
Also available in: Unified diff