1
0
forked from VimPlug/jedi

get_filters should always have the default search_global=False

This commit is contained in:
Dave Halter
2018-09-06 01:06:09 +02:00
parent 4730c71b16
commit a5e6f26267
9 changed files with 12 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ class LambdaName(AbstractNameDefinition):
class AbstractFunction(TreeContext):
api_type = u'function'
def get_filters(self, search_global, until_position=None, origin_scope=None):
def get_filters(self, search_global=False, until_position=None, origin_scope=None):
if search_global:
yield ParserTreeFilter(
self.evaluator,
@@ -263,7 +263,7 @@ class FunctionExecutionContext(TreeContext):
for result in self._get_yield_lazy_context(yield_in_same_for_stmt):
yield result
def get_filters(self, search_global, until_position=None, origin_scope=None):
def get_filters(self, search_global=False, until_position=None, origin_scope=None):
yield self.function_execution_filter(self.evaluator, self,
until_position=until_position,
origin_scope=origin_scope)