equal
deleted
inserted
replaced
384 self.data = b''.join(l) |
384 self.data = b''.join(l) |
385 self.hasremovals = False |
385 self.hasremovals = False |
386 self.extradata = [] |
386 self.extradata = [] |
387 |
387 |
388 def _pack(self, d): |
388 def _pack(self, d): |
389 return d[0] + b'\x00' + hex(d[1][:20]) + d[2] + b'\n' |
389 n = d[1] |
|
390 if len(n) == 21 or len(n) == 33: |
|
391 n = n[:-1] |
|
392 assert len(n) == 20 or len(n) == 32 |
|
393 return d[0] + b'\x00' + hex(n) + d[2] + b'\n' |
390 |
394 |
391 def text(self): |
395 def text(self): |
392 self._compact() |
396 self._compact() |
393 return self.data |
397 return self.data |
394 |
398 |