Skip to content

Commit

Permalink
Fix #1061, #2336, #3235: Now generation of autosummary doesn't contai…
Browse files Browse the repository at this point in the history
…n imported members by default. Thanks to Luc Saffre.
  • Loading branch information
shimizukawa committed Dec 13, 2016
1 parent 60ae843 commit 938d44e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Release 1.6 (in development)
Incompatible changes
--------------------

* #1061, #2336, #3235: Now generation of autosummary doesn't contain imported
members by default. Thanks to Luc Saffre.

Features added
--------------

Expand Down
1 change: 0 additions & 1 deletion sphinx/ext/autosummary/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def get_members(obj, typ, include_public=[], imported=False):
documenter = get_documenter(value, obj)
if documenter.objtype == typ:
if imported or getattr(value, '__module__', None) == obj.__name__:

items.append(name)
public = [x for x in items
if x in include_public or not x.startswith('_')]
Expand Down

0 comments on commit 938d44e

Please sign in to comment.