Import missed a get_set_vars function, which caused an error with user_stmt checking -> fixes issue 16 of jedi-vim

This commit is contained in:
David Halter
2012-10-18 22:00:13 +02:00
parent fa9772c82e
commit 658e5833ce
2 changed files with 6 additions and 0 deletions

View File

@@ -570,6 +570,9 @@ class Import(Simple):
else: else:
return [self.namespace] return [self.namespace]
def get_set_vars(self):
return self.get_defined_names()
def get_all_import_names(self): def get_all_import_names(self):
n = [] n = []
if self.from_ns: if self.from_ns:

View File

@@ -86,6 +86,9 @@ from keyword import kwlist, \
#? ['kwlist'] #? ['kwlist']
kwlist kwlist
#? []
from keyword import not_existing1, not_existing2
from tokenize import io from tokenize import io
tokenize.generate_tokens tokenize.generate_tokens