/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/ignores.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:
92
92
    patterns = set(USER_DEFAULTS)
93
93
    try:
94
94
        f = open(path, 'rb')
95
 
    except (IOError, OSError), e:
 
95
    except (IOError, OSError) as e:
96
96
        # open() shouldn't return an IOError without errno, but just in case
97
97
        err = getattr(e, 'errno', None)
98
98
        if err not in (errno.ENOENT,):
102
102
        # since get_* should be a safe operation
103
103
        try:
104
104
            _set_user_ignores(USER_DEFAULTS)
105
 
        except (IOError, OSError), e:
 
105
        except (IOError, OSError) as e:
106
106
            if e.errno not in (errno.EPERM,):
107
107
                raise
108
108
        return patterns