1
0
forked from VimPlug/jedi

fix docstr issue in the wrong place, fixes #210

This commit is contained in:
David Halter
2013-05-04 19:51:34 +04:30
parent 2e0d0bb4f5
commit ae0dd1d72c
2 changed files with 8 additions and 5 deletions

View File

@@ -399,7 +399,7 @@ class Parser(object):
stmt.parent = self.top_module
self._check_user_stmt(stmt)
# Attribute docstring (PEP 257) support
# Attribute docstring (PEP 224) support (sphinx uses it, e.g.)
with common.ignored(IndexError, AttributeError):
# If string literal is being parsed
first_tok = stmt.token_list[0]
@@ -673,3 +673,5 @@ class Parser(object):
tokenize.NEWLINE, tokenize.NL]:
debug.warning('token not classified', tok, token_type,
self.start_pos[0])
continue
self.no_docstr = False