diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-10-21 13:45:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-21 13:45:33 +0900 |
commit | f224f3ca25a3b22d549fcea2e7b26a2ee5a566cc (patch) | |
tree | 3bd1b0b4ce0191934ec0004c9c5e82a0cd38c7ad /sphinx | |
parent | 134f3b18842b4ca09c88659b77ce1116a24027e2 (diff) | |
parent | 7aab8c3b07653cceeea534bf536eb8bee2bb7f61 (diff) | |
download | sphinx-git-f224f3ca25a3b22d549fcea2e7b26a2ee5a566cc.tar.gz |
Merge pull request #4157 from tk0miya/4156_parse_class_comment
Fix #4156: failed to parse class comment
Diffstat (limited to 'sphinx')
-rw-r--r-- | sphinx/pycode/parser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index 28da09c78..f9644c38e 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -343,6 +343,7 @@ class VariableCommentPicker(ast.NodeVisitor): self.current_classes.append(node.name) self.add_entry(node.name) self.context.append(node.name) + self.previous = node for child in node.body: self.visit(child) self.context.pop() |