Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pure/osutil.py @ 8421:b6d0fa8c7685
posixfile: remove posixfile_nt and fix import bug in windows.py
The posixfile_nt class has been superseded by posixfile in osutils.c,
which works on Windows NT and above. All other systems get the regular
python file class which is assigned to posixfile in posix.py (for POSIX)
and in the pure python version of osutils.py (for Win 9x or Windows NT
in pure mode).
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Wed, 13 May 2009 21:36:16 +0200 |
parents | 823f25b25dea |
children | 3b76321aa0de |
line wrap: on
line diff
--- a/mercurial/pure/osutil.py Thu May 14 14:12:32 2009 -0700 +++ b/mercurial/pure/osutil.py Wed May 13 21:36:16 2009 +0200 @@ -8,6 +8,8 @@ import os import stat as _stat +posixfile = file + def _mode_to_kind(mode): if _stat.S_ISREG(mode): return _stat.S_IFREG if _stat.S_ISDIR(mode): return _stat.S_IFDIR @@ -47,3 +49,4 @@ else: result.append((fn, _mode_to_kind(st.st_mode))) return result +