equal
deleted
inserted
replaced
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 |