diff options
author | Jonathan Corbet <corbet@lwn.net> | 2025-06-19 15:17:39 -0600 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2025-06-21 13:18:03 -0600 |
commit | 4a1dd6643d8ef2c1655f308532fb7d605afa8be4 (patch) | |
tree | a448cc3aaaeeb17eb76e33a890cb4cf88c872703 /scripts/lib/kdoc/kdoc_parser.py | |
parent | d3f825032091fc14c7d5e34bcd54317ae4246903 (diff) |
docs: sphinx: avoid using the deprecated node.set_class()
Docutils emits a deprecation warning when the set_class() element method is
used; that warning disappears into the ether, but it also causes a crash
with docutils 0.19.
Avoid the deprecated function and just append directly to the "classes"
attribute like the documentation says instead.
Reported-by: Akira Yokosawa <akiyks@gmail.com>
Tested-by: Akira Yokosawa <akiyks@gmail.com>
Closes: https://lore.kernel.org/de7bae91-3200-481f-9db2-c0dc382c91dd@gmail.com/
Fixes: d6d1df92c25f ("docs: automarkup: Mark up undocumented entities too")
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions