equal
deleted
inserted
replaced
495 |
495 |
496 def _readexact(self, size): |
496 def _readexact(self, size): |
497 """read exactly <size> bytes from the stream""" |
497 """read exactly <size> bytes from the stream""" |
498 return changegroup.readexactly(self._fp, size) |
498 return changegroup.readexactly(self._fp, size) |
499 |
499 |
500 def seek(self, offset, whence): |
500 def seek(self, offset, whence=0): |
501 """move the underlying file pointer""" |
501 """move the underlying file pointer""" |
502 if self._seekable: |
502 if self._seekable: |
503 return self._fp.seek(offset, whence) |
503 return self._fp.seek(offset, whence) |
504 else: |
504 else: |
505 raise NotImplementedError(_('File pointer is not seekable')) |
505 raise NotImplementedError(_('File pointer is not seekable')) |