Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/pydoc.py
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
  • Loading branch information
2 people authored and earias314 committed Sep 23, 2020
commit 2832e99f38b413a2ed2216a3083376b3570d6c5d
2 changes: 1 addition & 1 deletion Lib/pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ def doc(thing, title='Python Library Documentation: %s', forceload=0,
"""Display text documentation, given an object or a path to an object."""
try:
if not follow_wrapped:
thing = inspect.unwrap(thing)
thing = inspect.unwrap(thing, stop=lambda func: getattr(func, '__doc__', None)
if output is None:
pager(render_doc(thing, title, forceload))
else:
Expand Down