summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 22:40:46 +0900
committerGitHub <noreply@github.com>2018-12-15 22:40:46 +0900
commit415ebc15c59e8b2e7fd2eb1df76017a331f8b131 (patch)
tree5934d437249ff312ed5d0fe157d800752fbf796f /sphinx/domains/cpp.py
parent4d933716b8074eabfa78093bf271908c6d0bc6e6 (diff)
parent77e0139a26a080e5b7c0292ebd08fbb2eb540be9 (diff)
downloadsphinx-git-415ebc15c59e8b2e7fd2eb1df76017a331f8b131.tar.gz
Merge pull request #5784 from tk0miya/refactor_hack_for_py2
Refactor hack for py2
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index 262d3f6d7..2ee529625 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -3845,9 +3845,8 @@ class Symbol:
yield c
if not c.identOrOp.is_anon():
continue
- # TODO: change to 'yield from' when Python 2 support is dropped
- for nested in c.children_recurse_anon:
- yield nested
+
+ yield from c.children_recurse_anon
def get_lookup_key(self):
# type: () -> List[Tuple[ASTNestedNameElement, Any]]