~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ignores.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-19 19:01:56 UTC
  • mto: This revision was merged to the branch mainline in revision 1871.
  • Revision ID: john@arbash-meinel.com-20060719190156-11da95c8e2d987a5
cleanups suggested by Martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
    try:
114
114
        f = open(path, 'rb')
115
115
    except (IOError, OSError), e:
116
 
        if e.errno not in (errno.ENOENT,):
 
116
        # open() shouldn't return an IOError without errno, but just in case
 
117
        err = getattr(e, 'errno', None)
 
118
        if err not in (errno.ENOENT,):
117
119
            raise
118
120
        # Create the ignore file, and just return the default
119
121
        # We want to ignore if we can't write to the file