Commits

Evgeny Podjachev committed 229cc4a

Minor.

Comments (0)

Files changed (3)

 .*
 *.bat
 *.db
+*.pyc

plugin/fastfileselector.vim

 endif
 
 if !exists("g:FFS_ignore_list")
-	let g:FFS_ignore_list = ['.*', '*.bak', '~*', '*.obj', '*.pdb', '*.res', '*.dll', '*.idb', '*.exe', '*.lib', '*.so', '*.pyc']
+	let g:FFS_ignore_list = ['.*', '*.bak', '~*', '*.obj', '*.pdb', '*.res', '*.dll', '*.idb', '*.exe', '*.lib', '*.suo', '*.sdf', '*.exp', '*.so', '*.pyc']
 endif
 
 if !exists("s:file_list")
 		for j in toRemove:
 			dirs.remove(j)
 
-	n = len(path.encode("utf-8"))
-	fileList = map(lambda x: x.encode("utf-8"), fileList)
-	fileList = map(lambda x: (caseMod(x[n:]), x), fileList)
+	n = len(path)
+	fileList = [(caseMod(x[n:].encode("utf-8")), x.encode("utf-8")) for x in fileList]
 
 	return fileList
 

tests/benchmark.py

 import time
 
-import os
 from os import walk, getcwdu
 from os.path import join 
 from fnmatch import fnmatch
 		for i in ignoreList:
 			if fnmatch(caseMod(f), i):
 				return True
-
 		return False
 
 	fileList = []
 		for j in toRemove:
 			dirs.remove(j)
 
-	n = len(path.encode("utf-8"))
-	fileList = map(lambda x: x.encode("utf-8"), fileList)
-	fileList = map(lambda x: (caseMod(x[n:]), x), fileList)
+	n = len(path)
+	fileList = [(caseMod(x[n:].encode("utf-8")), x.encode("utf-8")) for x in fileList]
 
 	return fileList