equal
deleted
inserted
replaced
271 if (len(nextdata) + currentlen > _maxpayload): |
271 if (len(nextdata) + currentlen > _maxpayload): |
272 currentpart = [] |
272 currentpart = [] |
273 currentlen = 0 |
273 currentlen = 0 |
274 parts.append(currentpart) |
274 parts.append(currentpart) |
275 currentpart.append(nextdata) |
275 currentpart.append(nextdata) |
|
276 currentlen += len(nextdata) |
276 for idx, part in enumerate(reversed(parts)): |
277 for idx, part in enumerate(reversed(parts)): |
277 data = ''.join([_pack('>B', _fmversion)] + part) |
278 data = ''.join([_pack('>B', _fmversion)] + part) |
278 keys['dump%i' % idx] = base85.b85encode(data) |
279 keys['dump%i' % idx] = base85.b85encode(data) |
279 return keys |
280 return keys |
280 |
281 |