1
0
forked from VimPlug/jedi

remove more used_vars

This commit is contained in:
David Halter
2013-09-02 23:36:26 +04:30
parent a2acc6a8a9
commit a355c8c54c
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ class Instance(use_metaclass(cache.CachedMetaClass, Executable)):
normally self. normally self.
""" """
try: try:
return str(func.params[0].used_vars[0]) return str(func.params[0].get_name())
except IndexError: except IndexError:
return None return None

View File

@@ -215,7 +215,7 @@ class Parser(object):
param.add_annotation(annotation) param.add_annotation(annotation)
# params without vars are usually syntax errors. # params without vars are usually syntax errors.
if param and (param.get_set_vars() or param.used_vars): if param and (param.get_set_vars()):
param.position_nr = pos param.position_nr = pos
names.append(param) names.append(param)
pos += 1 pos += 1