mercurial/bundle2.py
changeset 24070 de32e9881698
parent 24048 13d88b7eb3a0
child 24071 184a2f6f40da
equal deleted inserted replaced
24069:c6666395fdd2 24070:de32e9881698
   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'))