[issue21548] pydoc -k IndexError on empty docstring

Terry J. Reedy report at bugs.python.org
Fri May 23 23:07:00 CEST 2014


Terry J. Reedy added the comment:

Replacing 2061 with the following should work for all versions.
desc = module.__doc__.splitlines()[0] if module.__doc__ else ''

----------
nosy: +terry.reedy
type:  -> behavior
versions: +Python 2.7, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21548>
_______________________________________


More information about the Python-bugs-list mailing list