mercurial/windows.py
changeset 32331 bd872f64a8ba
parent 32248 d74b0cff94a9
child 32406 a9c71d578a1c
equal deleted inserted replaced
32330:2959c3e986e0 32331:bd872f64a8ba
   332         executable = findexisting(os.path.join(path, command))
   332         executable = findexisting(os.path.join(path, command))
   333         if executable is not None:
   333         if executable is not None:
   334             return executable
   334             return executable
   335     return findexisting(os.path.expanduser(os.path.expandvars(command)))
   335     return findexisting(os.path.expanduser(os.path.expandvars(command)))
   336 
   336 
   337 _wantedkinds = set([stat.S_IFREG, stat.S_IFLNK])
   337 _wantedkinds = {stat.S_IFREG, stat.S_IFLNK}
   338 
   338 
   339 def statfiles(files):
   339 def statfiles(files):
   340     '''Stat each file in files. Yield each stat, or None if a file
   340     '''Stat each file in files. Yield each stat, or None if a file
   341     does not exist or has a type we don't care about.
   341     does not exist or has a type we don't care about.
   342 
   342