1
0
forked from VimPlug/jedi

Small parser fix.

This commit is contained in:
Dave Halter
2014-10-27 16:07:24 +01:00
parent 8911ecb6a5
commit 1a6ff3e8e6
2 changed files with 1 additions and 2 deletions

View File

@@ -203,7 +203,6 @@ def get_params(evaluator, func, var_args):
keys_used.add(k)
key, va_values = next(var_arg_iterator, (None, ()))
keys = []
values = []
array_type = None

View File

@@ -82,7 +82,7 @@ class Parser(object):
arr = self.scope_names_stack[-1].setdefault(new_node.value, [])
arr.append(new_node)
elif isinstance(new_node, pr.ClassOrFunc) \
and raw_node[0] in (pytree.python_symbols.funcdef, pytree.python_symbols.funcdef):
and raw_node[0] in (pytree.python_symbols.funcdef, pytree.python_symbols.classdef):
# scope_name_stack handling
n = new_node.name
scope_names = self.scope_names_stack.pop()