diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-10-16 22:33:38 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-10-19 22:24:40 +0900 |
commit | 7aab8c3b07653cceeea534bf536eb8bee2bb7f61 (patch) | |
tree | 8291c706301d20d687d438e33fb31e5cf29f5620 /sphinx/pycode | |
parent | 3369d9a03a9f1e173ed3b8281a50f4d52eb39fce (diff) | |
download | sphinx-git-7aab8c3b07653cceeea534bf536eb8bee2bb7f61.tar.gz |
Fix #4156: failed to parse class comment
Diffstat (limited to 'sphinx/pycode')
-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 d488842e9..9b5cb13c9 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -336,6 +336,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() |