diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-03-27 20:16:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 20:16:34 (GMT) |
commit | a694f2394881fb68b5646061ded01fff6dc47778 (patch) | |
tree | 83dcf463455de1e2d6f7b46fb01c08df91c13a42 /Lib/pydoc.py | |
parent | d929f1838a8fba881ff0148b7fc31f6265703e3d (diff) | |
download | cpython-a694f2394881fb68b5646061ded01fff6dc47778.zip cpython-a694f2394881fb68b5646061ded01fff6dc47778.tar.gz cpython-a694f2394881fb68b5646061ded01fff6dc47778.tar.bz2 |
Add missing docstrings for TarInfo objects (#12555)
Diffstat (limited to 'Lib/pydoc.py')
-rw-r--r-- | Lib/pydoc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 0cf3d33..86ccfe0 100644 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -997,8 +997,8 @@ class HTMLDoc(Doc): if name: push('<dl><dt><strong>%s</strong></dt>\n' % name) - if object.__doc__ is not None: - doc = self.markup(getdoc(object), self.preformat) + doc = self.markup(getdoc(object), self.preformat) + if doc: push('<dd><tt>%s</tt></dd>\n' % doc) push('</dl>\n') |