[3.15] gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878) (#154127)
* gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878)
The lzma module constants (FORMAT_*, CHECK_*, PRESET_*, FILTER_*, MODE_*
and MF_*) were referenced with the :const: role throughout the module
documentation but were never defined as reference targets, producing
"reference target not found" warnings under nitpicky mode.
Document these public constants with .. data:: directives, following the
convention used by the signal, socket and ssl modules, so the existing
references resolve. The now-redundant inline descriptions of the format
and check constants are condensed into linked references.
(cherry picked from commit
1530b38c82f8f09c3c29b2829cd1d8c1db830761)
Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
* Fix nitpicks
---------
Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>