Permalink
Browse files

Some fixes for Python 3

  • Loading branch information...
1 parent af764a8 commit e1180f289f5f90173ce537250abcb22df65b5b63 @mvoidex mvoidex committed Mar 19, 2013
Showing with 4 additions and 4 deletions.
  1. +3 −3 autocomplete.py
  2. +1 −1 cabalbuild.py
View
6 autocomplete.py
@@ -552,7 +552,7 @@ def show_symbol_info(self, decl):
def browse_module(self, module):
with autocompletion.database.modules as modules:
- decls = module.declarations.values()
+ decls = list(module.declarations.values())
self.candidates = decls
self.view.window().show_quick_panel([[decl.brief(), decl.docs] if decl.docs else [decl.brief()] for decl in decls], self.on_done)
@@ -576,8 +576,8 @@ def run(self, module_name = None, filename = None):
module_candidate = symbols.get_preferred_module(modules[module_name], current_file_name)
- decls = module_candidate.declarations.values()
- self.candidates = [d for d in decls]
+ decls = list(module_candidate.declarations.values())
+ self.candidates = decls
self.window.show_quick_panel([[decl.brief(), decl.docs] if decl.docs else [decl.brief()] for decl in decls], self.on_symbol_selected)
return
View
2 cabalbuild.py
@@ -55,7 +55,7 @@ def build(self, command, use_cabal_dev=None):
# Select project from list
# on_selected accepts name of project and directory of project
def select_project(window, on_selected):
- ps = autocompletion.projects.object.items()
+ ps = list(autocompletion.projects.object.items())
def run_selected(psel):
on_selected(psel[0], psel[1]['dir'])

0 comments on commit e1180f2

Please sign in to comment.