1
0
forked from VimPlug/jedi

Simplify get_parent_scope

This commit is contained in:
Dave Halter
2014-08-12 01:37:58 +02:00
parent 33e5a3280a
commit 6b7ce590fa
3 changed files with 5 additions and 6 deletions

View File

@@ -140,11 +140,11 @@ class Base(object):
scope = scope.parent
return scope
def get_parent_scope(self, include_current=True):
def get_parent_scope(self):
"""
Returns the underlying scope.
"""
scope = self if include_current else self.parent
scope = self.parent
while scope.parent is not None:
if scope.is_scope():
break