/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/export/dir_exporter.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 15:38:26 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205153826-rnrd0m3iqoizqvrw
Apply 2to3 except fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    """
40
40
    try:
41
41
        os.mkdir(dest)
42
 
    except OSError, e:
 
42
    except OSError as e:
43
43
        if e.errno == errno.EEXIST:
44
44
            # check if directory empty
45
45
            if os.listdir(dest) != []:
64
64
            try:
65
65
                symlink_target = tree.get_symlink_target(ie.file_id, tp)
66
66
                os.symlink(symlink_target, fullpath)
67
 
            except OSError, e:
 
67
            except OSError as e:
68
68
                raise errors.BzrError(
69
69
                    "Failed to create symlink %r -> %r, error: %s"
70
70
                    % (fullpath, symlink_target, e))