1
0
forked from VimPlug/jedi

Remove dedents from the parser tree. No need for them.

This commit is contained in:
Dave Halter
2016-09-11 13:03:29 +02:00
parent d748f6fad6
commit 1226962922
7 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ class DocstringMixin(object):
elif isinstance(self, ClassOrFunc):
node = self.children[self.children.index(':') + 1]
if is_node(node, 'suite'): # Normally a suite
node = node.children[2] # -> NEWLINE INDENT stmt
node = node.children[1] # -> NEWLINE stmt
else: # ExprStmt
simple_stmt = self.parent
c = simple_stmt.parent.children