diff options
author | Stéphane Wirtel <stephane@wirtel.be> | 2018-10-13 06:14:08 (GMT) |
---|---|---|
committer | Julien Palard <julien@palard.fr> | 2018-10-13 06:14:08 (GMT) |
commit | e385d0661ecf8bc9ba95c4395d9a11262c2cbfec (patch) | |
tree | b9f0b6ec39101634681d031b29fc1a6b72782269 /Doc/tools/extensions | |
parent | f6c29a65e2a6da5c0014c868cf963c975b74e72b (diff) | |
download | cpython-e385d0661ecf8bc9ba95c4395d9a11262c2cbfec.zip cpython-e385d0661ecf8bc9ba95c4395d9a11262c2cbfec.tar.gz cpython-e385d0661ecf8bc9ba95c4395d9a11262c2cbfec.tar.bz2 |
bpo-34967: Sphinx is deprecating add_description_unit, use add_object_type (GH-9827)
Diffstat (limited to 'Doc/tools/extensions')
-rw-r--r-- | Doc/tools/extensions/pyspecific.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 132920f..08fa9df 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -424,11 +424,9 @@ def setup(app): app.add_directive('deprecated-removed', DeprecatedRemoved) app.add_builder(PydocTopicsBuilder) app.add_builder(suspicious.CheckSuspiciousMarkupBuilder) - app.add_description_unit('opcode', 'opcode', '%s (opcode)', - parse_opcode_signature) - app.add_description_unit('pdbcommand', 'pdbcmd', '%s (pdb command)', - parse_pdb_command) - app.add_description_unit('2to3fixer', '2to3fixer', '%s (2to3 fixer)') + app.add_object_type('opcode', 'opcode', '%s (opcode)', parse_opcode_signature) + app.add_object_type('pdbcommand', 'pdbcmd', '%s (pdb command)', parse_pdb_command) + app.add_object_type('2to3fixer', '2to3fixer', '%s (2to3 fixer)') app.add_directive_to_domain('py', 'decorator', PyDecoratorFunction) app.add_directive_to_domain('py', 'decoratormethod', PyDecoratorMethod) app.add_directive_to_domain('py', 'coroutinefunction', PyCoroutineFunction) |