~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

Also handle the case when source *and* target does not exist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
                unlink_func(tmp_name)
251
251
            else:
252
252
                rename_func(tmp_name, new)
253
 
                if failure_exc is not None:
254
 
                    raise failure_exc[0], failure_exc[1], failure_exc[2]
 
253
    if failure_exc is not None:
 
254
        raise failure_exc[0], failure_exc[1], failure_exc[2]
255
255
 
256
256
 
257
257
# In Python 2.4.2 and older, os.path.abspath and os.path.realpath