From 938d44e2ded54e23da677a120381228bca4c6a5f Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Wed, 14 Dec 2016 00:51:12 +0900 Subject: [PATCH] Fix #1061, #2336, #3235: Now generation of autosummary doesn't contain imported members by default. Thanks to Luc Saffre. --- CHANGES | 3 +++ sphinx/ext/autosummary/generate.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index dc7a6e2ef63..415561fc3ed 100644 --- a/CHANGES +++ b/CHANGES @@ -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 -------------- diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py index a47a1105f10..d3dfbe5e126 100644 --- a/sphinx/ext/autosummary/generate.py +++ b/sphinx/ext/autosummary/generate.py @@ -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('_')]