mercurial/pure/osutil.py
changeset 9031 3b76321aa0de
parent 8421 b6d0fa8c7685
child 10263 25e572394f5c
equal deleted inserted replaced
9030:3f56055ff1d7 9031:3b76321aa0de
     6 # GNU General Public License version 2, incorporated herein by reference.
     6 # GNU General Public License version 2, incorporated herein by reference.
     7 
     7 
     8 import os
     8 import os
     9 import stat as _stat
     9 import stat as _stat
    10 
    10 
    11 posixfile = file
    11 posixfile = open
    12 
    12 
    13 def _mode_to_kind(mode):
    13 def _mode_to_kind(mode):
    14     if _stat.S_ISREG(mode): return _stat.S_IFREG
    14     if _stat.S_ISREG(mode): return _stat.S_IFREG
    15     if _stat.S_ISDIR(mode): return _stat.S_IFDIR
    15     if _stat.S_ISDIR(mode): return _stat.S_IFDIR
    16     if _stat.S_ISLNK(mode): return _stat.S_IFLNK
    16     if _stat.S_ISLNK(mode): return _stat.S_IFLNK