changeset 25204:0a48380b61fb

windows: drop Python2.4 specific hack for directory not found handling A good Python 2.4 hack is a removed Python 2.4 hack.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 16:33:57 -0500
parents d4ccc455c953
children ff2ec757aacb
files mercurial/windows.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/windows.py	Mon May 18 16:24:16 2015 -0500
+++ b/mercurial/windows.py	Mon May 18 16:33:57 2015 -0500
@@ -261,11 +261,9 @@
                              for n, k, s in osutil.listdir(dir, True)
                              if getkind(s.st_mode) in _wantedkinds])
             except OSError, err:
-                # handle directory not found in Python version prior to 2.5
-                # Python <= 2.4 returns native Windows code 3 in errno
                 # Python >= 2.5 returns ENOENT and adds winerror field
                 # EINVAL is raised if dir is not a directory.
-                if err.errno not in (3, errno.ENOENT, errno.EINVAL,
+                if err.errno not in (errno.ENOENT, errno.EINVAL,
                                      errno.ENOTDIR):
                     raise
                 dmap = {}