readv(directory, ...) fails with AttributeError; should give more meaningful error

Bug #400003 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

I don't think this is what was intended:

>>> from bzrlib.transport import get_transport
>>> get_transport('.').readv('.', [(0, 1)]).next()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 697, in _seek_and_read
    fp.seek(c_offset.start)
AttributeError: 'LateReadError' object has no attribute 'seek'

I guess LateReadError should implement seek().

Changed in bzr:
status: New → Confirmed
Martin Pool (mbp)
summary: - readv(directory, ...) blows up in strange way
+ readv(directory, ...) fails with AttributeError; should give more
+ meaningful error
Changed in bzr:
importance: Undecided → Low
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.