~bmerry/duplicity/pydrive-regular

« back to all changes in this revision

Viewing changes to duplicity/robust.py

  • Committer: Michael Terry
  • Date: 2014-04-17 20:50:57 UTC
  • mto: This revision was merged to the branch mainline in revision 975.
  • Revision ID: michael.terry@canonical.com-20140417205057-4cxo1yebh0oer02a
Solve except 2to3 fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    #       RPathException, Rdiff.RdiffException,
40
40
    #       librsync.librsyncError, C.UnknownFileTypeError), exc:
41
41
    #   TracebackArchive.add()
42
 
    except (IOError, EnvironmentError, librsync.librsyncError, path.PathException), exc:
 
42
    except (IOError, EnvironmentError, librsync.librsyncError, path.PathException) as exc:
43
43
        if (not isinstance(exc, EnvironmentError) or
44
44
            ((exc[0] in errno.errorcode)
45
45
             and errno.errorcode[exc[0]] in