equal
deleted
inserted
replaced
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 |