/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: Jelmer Vernooij
  • Date: 2008-03-08 21:33:25 UTC
  • mfrom: (3256 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3257.
  • Revision ID: jelmer@samba.org-20080308213325-0tgrjt566q32na2w
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