~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Robert Collins
  • Date: 2005-10-13 07:30:14 UTC
  • mfrom: (1452)
  • mto: This revision was merged to the branch mainline in revision 1453.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051013073014-cdfd16f95c395b6b
merge from integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
            path = self.abspath(relpath)
75
75
            return open(path, 'rb')
76
76
        except IOError,e:
77
 
            if e.errno == errno.ENOENT:
78
 
                raise NoSuchFile('File %r does not exist' % path, orig_error=e)
 
77
            if e.errno in (errno.ENOENT, errno.ENOTDIR):
 
78
                raise NoSuchFile('File or directory %r does not exist' % path, orig_error=e)
79
79
            raise LocalTransportError(orig_error=e)
80
80
 
81
81
    def get_partial(self, relpath, start, length=None):