Skip to content

Commit

Permalink
Fix a little error to pyplete
Browse files Browse the repository at this point in the history
  • Loading branch information
goinnn committed Jul 8, 2012
1 parent 4ab2166 commit d8f6717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kate_plugins/pyte_plugins/autocomplete/pyplete.py
Expand Up @@ -51,7 +51,9 @@ def get_importables_top_level(self, list_autocomplete, use_cache=True):
return list_autocomplete and bool(len(list_autocomplete)) return list_autocomplete and bool(len(list_autocomplete))


def get_importables_rest_level(self, list_autocomplete, imp_name, subimportables=None, into_module=True): def get_importables_rest_level(self, list_autocomplete, imp_name, subimportables=None, into_module=True):
imp_path = self.importables_path[imp_name][0] if not self.importables_path.get(imp_name):
return False
imp_path = self.importables_path.get(imp_name)[0]
subimportables = subimportables or [] subimportables = subimportables or []
subimportables = [subimportable for subimportable in subimportables if subimportable] subimportables = [subimportable for subimportable in subimportables if subimportable]
if subimportables: if subimportables:
Expand Down

0 comments on commit d8f6717

Please sign in to comment.