/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Alexander Belchenko
  • Date: 2008-02-28 21:25:30 UTC
  • mfrom: (3243 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3246.
  • Revision ID: bialix@ukr.net-20080228212530-pcrt1sc4vcezapgr
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
    try:
150
150
        return _mapper(_lstat(f).st_mode)
151
151
    except OSError, e:
152
 
        if getattr(e, 'errno', None) == errno.ENOENT:
 
152
        if getattr(e, 'errno', None) in (errno.ENOENT, errno.ENOTDIR):
153
153
            raise errors.NoSuchFile(f)
154
154
        raise
155
155
 
849
849
        return False
850
850
 
851
851
 
 
852
def has_hardlinks():
 
853
    if getattr(os, 'link', None) is not None:
 
854
        return True
 
855
    else:
 
856
        return False
 
857
 
 
858
 
852
859
def contains_whitespace(s):
853
860
    """True if there are any whitespace characters in s."""
854
861
    # string.whitespace can include '\xa0' in certain locales, because it is