~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Aaron Bentley
  • Date: 2007-12-29 18:23:50 UTC
  • mto: This revision was merged to the branch mainline in revision 3162.
  • Revision ID: aaron.bentley@utoronto.ca-20071229182350-f7wd95zied8e8vt7
Python 2.5 on win32 can emit errno.EINVAL when listing a non-directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
        This handles things like ENOENT, ENOTDIR, EEXIST, and EACCESS
344
344
        """
345
345
        if getattr(e, 'errno', None) is not None:
346
 
            if e.errno in (errno.ENOENT, errno.ENOTDIR):
 
346
            if e.errno in (errno.ENOENT, errno.ENOTDIR, errno.EINVAL):
347
347
                raise errors.NoSuchFile(path, extra=e)
348
348
            # I would rather use errno.EFOO, but there doesn't seem to be
349
349
            # any matching for 267