1
0
forked from VimPlug/jedi

Remove asserts and calculate them dynamically.

This commit is contained in:
Dave Halter
2015-02-05 20:16:55 +01:00
parent 0a3797cf6e
commit 8125d5f562
5 changed files with 15 additions and 26 deletions

View File

@@ -526,12 +526,6 @@ class Scope(BaseNode, DocstringMixin):
# returns will be in "normal" modules.
return self._search_in_scope(ReturnStmt)
@property
def asserts(self):
# Needed here for fast_parser, because the fast_parser splits and
# returns will be in "normal" modules.
return self._search_in_scope(AssertStmt)
@property
def subscopes(self):
return self._search_in_scope(Scope)
@@ -1203,8 +1197,3 @@ class CompFor(BaseNode):
def get_defined_names(self):
return _defined_names(self.children[1])
@property
def asserts(self):
"""Since it's a scope, it can be asked for asserts."""
return []