Start using ExprStmt.

This commit is contained in:
Dave Halter committed 2014-09-06 10:46:59 +02:00
1 parent f57d9ef675
commit cb84bc0829
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1515,7 +1515,7 @@ class Name(Simple):
def get_definition(self):
# TODO This is way to complicated, simplify this with a new parser.
return self.get_parent_until((Statement, IsScope, Import))
return self.get_parent_until((ExprStmt, IsScope, Import))
@property
def end_pos(self):