mercurial/changegroup.py
branchstable
changeset 13459 acbe171c8fbe
parent 13458 9f2c407caf34
child 13786 4ed718f909e5
equal deleted inserted replaced
13458:9f2c407caf34 13459:acbe171c8fbe
   149         return self._stream.tell()
   149         return self._stream.tell()
   150     def close(self):
   150     def close(self):
   151         return self._stream.close()
   151         return self._stream.close()
   152 
   152 
   153     def chunklength(self):
   153     def chunklength(self):
   154         d = readexactly(stream, 4)
   154         d = readexactly(self._stream, 4)
   155         l = struct.unpack(">l", d)[0]
   155         l = struct.unpack(">l", d)[0]
   156         if l <= 4:
   156         if l <= 4:
   157             if l:
   157             if l:
   158                 raise util.Abort(_("invalid chunk length %d") % l)
   158                 raise util.Abort(_("invalid chunk length %d") % l)
   159             return 0
   159             return 0