Commits

Evgeny Podjachev committed 81eaaa0

Fixes for python3.

Comments (0)

Files changed (1)

plugin/fastfileselector.vim

 	else:
 		check_symbols = check_symbols_uni
 
-	fileList = map(lambda x: (check_symbols(x[0], symbols), x), vim.eval(fileListVar))
-	fileList = filter(operator.itemgetter(0), fileList)
+	fileList = [(check_symbols(x[0], symbols), x) for x in vim.eval(fileListVar)]
+	fileList = [x for x in fileList if operator.itemgetter(0)]
 	fileList.sort(key=operator.itemgetter(0, 1))
 
 	vim.command("let s:filtered_file_list=[]")