Show More
@@ -261,11 +261,9 b' def statfiles(files):' | |||||
261 | for n, k, s in osutil.listdir(dir, True) |
|
261 | for n, k, s in osutil.listdir(dir, True) | |
262 | if getkind(s.st_mode) in _wantedkinds]) |
|
262 | if getkind(s.st_mode) in _wantedkinds]) | |
263 | except OSError, err: |
|
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 | # Python >= 2.5 returns ENOENT and adds winerror field |
|
264 | # Python >= 2.5 returns ENOENT and adds winerror field | |
267 | # EINVAL is raised if dir is not a directory. |
|
265 | # EINVAL is raised if dir is not a directory. | |
268 |
if err.errno not in ( |
|
266 | if err.errno not in (errno.ENOENT, errno.EINVAL, | |
269 | errno.ENOTDIR): |
|
267 | errno.ENOTDIR): | |
270 | raise |
|
268 | raise | |
271 | dmap = {} |
|
269 | dmap = {} |
General Comments 0
You need to be logged in to leave comments.
Login now