1
0
forked from VimPlug/jedi

Remove some code that is not necessary anmore, because of an improvment in get_parent_scope

This commit is contained in:
Dave Halter
2019-04-13 01:57:50 +02:00
parent 05eb06d91b
commit 3c74b9bf10
2 changed files with 1 additions and 24 deletions

View File

@@ -242,14 +242,6 @@ def is_scope(node):
return node.type in ('file_input', 'classdef', 'funcdef', 'lambdef', 'comp_for')
def is_name_of_func_or_class_def(name_node, func_or_class_def_node):
"""Return True if name_node is the name of the func_or_class_def_node."""
return (
name_node.parent is func_or_class_def_node and
name_node.type == 'name' and
func_or_class_def_node.type in ('classdef', 'funcdef'))
def get_parent_scope(node, include_flows=False):
"""
Returns the underlying scope.