mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-46434: Handle missing docstrings in pdb help (GH-30705)
This commit is contained in:
parent
a1bf329bca
commit
60705cff70
4 changed files with 27 additions and 0 deletions
|
|
@ -1577,6 +1577,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue