/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/transport/http/_urllib.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-09 18:02:00 UTC
  • mfrom: (1963.2.7 bzr.dev.no_has_key)
  • Revision ID: pqm@pqm.ubuntu.com-20060909180200-96e41112dff213f3
(robey) remove hasattr and == None in favor of getattr() and is None

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                raise NoSuchFile(path, extra=e)
68
68
            raise
69
69
        except (BzrError, IOError), e:
70
 
            if hasattr(e, 'errno'):
 
70
            if getattr(e, 'errno', None) is not None:
71
71
                mutter('io error: %s %s for has url: %r',
72
72
                    e.errno, errno.errorcode.get(e.errno), path)
73
73
                if e.errno == errno.ENOENT: