~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

MergeĀ fromĀ jam-integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        # RBC 20060103 abstraction leakage: the paramiko SFTP clients rename
143
143
        # function raises an IOError with errno == None when a rename fails.
144
144
        # This then gets caught here.
145
 
        if e.errno is not None:
 
145
        if e.errno not in (None, errno.ENOENT, errno.ENOTDIR):
146
146
            raise
147
147
    except Exception, e:
148
148
        if (not hasattr(e, 'errno')