]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 16 May 2025 20:52:42 +0000 (22:52 +0200)
committerGitHub <noreply@github.com>
Fri, 16 May 2025 20:52:42 +0000 (20:52 +0000)
commit510e28ec29099a1ee507dfd8886c827bf15fb35a
tree876052683d25875f2f412d4668153fe6949b5171
parent4291bbe88b7d2dfce44cb6fbf7421c264047ab11
[3.13] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) (GH-134113)

Comments immediately preceding the object's source code are used
if the object has no docstring.
Comments that do not describe the object should be separated from
the following source code by an empty line.
(cherry picked from commit 71cf4dd622832848cace358a7f8444243afd2e83)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/argparse.py