mercurial/bundle2.py
changeset 50616 7200a9d4ea04
parent 50552 037890ecaff5
child 50706 0452af304808
equal deleted inserted replaced
50615:9e69d9d6f4cf 50616:7200a9d4ea04
  1379     """a bundle part read from a bundle"""
  1379     """a bundle part read from a bundle"""
  1380 
  1380 
  1381     def __init__(self, ui, header, fp):
  1381     def __init__(self, ui, header, fp):
  1382         super(unbundlepart, self).__init__(fp)
  1382         super(unbundlepart, self).__init__(fp)
  1383         self._seekable = util.safehasattr(fp, 'seek') and util.safehasattr(
  1383         self._seekable = util.safehasattr(fp, 'seek') and util.safehasattr(
  1384             fp, b'tell'
  1384             fp, 'tell'
  1385         )
  1385         )
  1386         self.ui = ui
  1386         self.ui = ui
  1387         # unbundle state attr
  1387         # unbundle state attr
  1388         self._headerdata = header
  1388         self._headerdata = header
  1389         self._headeroffset = 0
  1389         self._headeroffset = 0