diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-01-21 19:32:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 19:32:43 (GMT) |
commit | 05063fa15c594012e6dc9c2c7a3ea72e7cb933f2 (patch) | |
tree | b64351e6fd67cbb7f0c1e349dd4d96e55a51b854 /Lib/pdb.py | |
parent | a1015c6478e8cbec2ecb984a3cba733783d168b5 (diff) | |
download | cpython-05063fa15c594012e6dc9c2c7a3ea72e7cb933f2.zip cpython-05063fa15c594012e6dc9c2c7a3ea72e7cb933f2.tar.gz cpython-05063fa15c594012e6dc9c2c7a3ea72e7cb933f2.tar.bz2 |
bpo-46434: Handle missing docstrings in pdb help (GH-30705)
(cherry picked from commit 60705cff70576482fea31dcafbf8a37cbb751ea5)
Co-authored-by: Tom Sparrow <793763+sparrowt@users.noreply.github.com>
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1493,6 +1493,9 @@ class Pdb(bdb.Bdb, cmd.Cmd): self.error('No help for %r; please do not run Python with -OO ' 'if you need command help' % arg) return + if command.__doc__ is None: + self.error('No help for %r; __doc__ string missing' % arg) + return self.message(command.__doc__.rstrip()) do_h = do_help |