]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-52161: Enhance Cmd support for docstrings (#110987)
authorFilip Łapkiewicz <80906036+fipachu@users.noreply.github.com>
Wed, 3 Jan 2024 19:37:34 +0000 (20:37 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Jan 2024 19:37:34 +0000 (19:37 +0000)
commit4c4b08dd2bd5f2cad4e41bf29119a3daa2956f6e
tree31653bc883f2cc794ea67fe01fa5a90322eac73c
parentf1f839243251fef7422c31d6a7c3c747e0b5e27c
gh-52161: Enhance Cmd support for docstrings (#110987)

In `cmd.Cmd.do_help` call `inspect.cleandoc()`,
to clean indentation and remove leading/trailing empty
lines from a dosctring before printing.
Lib/cmd.py
Misc/NEWS.d/next/Library/2023-10-17-16-11-03.gh-issue-52161.WBYyCJ.rst [new file with mode: 0644]