##// END OF EJS Templates
windows: drop Python2.4 specific hack for directory not found handling...
Pierre-Yves David -
r25204:0a48380b default
parent child Browse files
Show More
@@ -261,11 +261,9 b' def statfiles(files):'
261 261 for n, k, s in osutil.listdir(dir, True)
262 262 if getkind(s.st_mode) in _wantedkinds])
263 263 except OSError, err:
264 # handle directory not found in Python version prior to 2.5
265 # Python <= 2.4 returns native Windows code 3 in errno
266 264 # Python >= 2.5 returns ENOENT and adds winerror field
267 265 # EINVAL is raised if dir is not a directory.
268 if err.errno not in (3, errno.ENOENT, errno.EINVAL,
266 if err.errno not in (errno.ENOENT, errno.EINVAL,
269 267 errno.ENOTDIR):
270 268 raise
271 269 dmap = {}
General Comments 0
You need to be logged in to leave comments. Login now