fix docstr issue in the wrong place, fixes #210
This commit is contained in:
1 parent
2e0d0bb4f5
commit
ae0dd1d72c
2 files changed
+8
-5
No files matched your search
+3
-1
@@ -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
|
||||
Reference in new issue
Block a user