diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-10-18 21:35:54 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-10-18 21:37:09 +0900 |
| commit | 4fdcae05843cfc1be155620ade9dff10ab3e9853 (patch) | |
| tree | 078df6aefcd1913b44d081f1e4e97a9023bf9de1 /sphinx/pycode/parser.py | |
| parent | 3369d9a03a9f1e173ed3b8281a50f4d52eb39fce (diff) | |
| download | sphinx-git-4fdcae05843cfc1be155620ade9dff10ab3e9853.tar.gz | |
Fix #4158: pycode.parser failed to parse starred assignment
Diffstat (limited to 'sphinx/pycode/parser.py')
| -rw-r--r-- | sphinx/pycode/parser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index d488842e9..1191551c4 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -62,6 +62,8 @@ def get_lvar_names(node, self=None): raise TypeError('The assignment %r is not instance variable' % node) elif node_name == 'str': return [node] # type: ignore + elif node_name == 'Starred': + return [node.value.id] # type: ignore else: raise NotImplementedError('Unexpected node name %r' % node_name) |
