diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-13 11:14:44 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-13 11:14:44 +0900 |
commit | 1d2d295a93db73f9648f016ee7fc0152efdaa9a7 (patch) | |
tree | 17e0aef03ce5108b0145b419d7b7ac495d43131f /sphinx/pycode | |
parent | 5d89c30dab810117421b6262362b1b45432c9f8e (diff) | |
parent | 68973e803a4a79e54918e9bcbbfae8c535576c70 (diff) | |
download | sphinx-git-1d2d295a93db73f9648f016ee7fc0152efdaa9a7.tar.gz |
Merge branch '2.1.3' into 2.0
Diffstat (limited to 'sphinx/pycode')
-rw-r--r-- | sphinx/pycode/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index 3603e3cc3..cbcb3b17d 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -274,7 +274,7 @@ class VariableCommentPicker(ast.NodeVisitor): """Handles Assign node and pick up a variable comment.""" try: targets = get_assign_targets(node) - varnames = sum([get_lvar_names(t, self=self.get_self()) for t in targets], []) + varnames = sum([get_lvar_names(t, self=self.get_self()) for t in targets], []) # type: List[str] # NOQA current_line = self.get_line(node.lineno) except TypeError: return # this assignment is not new definition! |